Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddDenoTask

Method
📦 CommunityToolkit.Aspire.Hosting.Deno v13.6.1
func (DistributedApplicationBuilder) AddDenoTask(
name string,
options ...*AddDenoTaskOptions,
) DenoAppResource

Signature

methodAddDenoTaskbuilder
Adds a Deno task to the distributed application builder
AddDenoTask(
name string,
options ...*AddDenoTaskOptions,
) DenoAppResource
namestringThe name of the resource.
options...*AddDenoTaskOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*AddDenoTaskOptions argument.

WorkingDirectory*stringThe working directory to use for the command. If null, the working directory of the current process is used.
TaskName*stringThe deno task to execute. Defaults to "start".
Args[]stringThe arguments to pass to the command.
DenoAppResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder