Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

DistributedApplicationBuilder.AddCSharpApp

Method
📦 Aspire.Hosting v17.0.0
type DistributedApplicationBuilder interface {
// ... omitted for brevity
AddCSharpApp(
name string,
path string,
options ...*AddCSharpAppOptions,
) CSharpAppResource
}

Signature

methodAddCSharpAppbuilder
Adds a C# application resource
AddCSharpApp(
name string,
path string,
options ...*AddCSharpAppOptions,
) CSharpAppResource
namestring
pathstring
options...*AddCSharpAppOptionsOptional settings, described under Options.

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

Options*ProjectResourceOptions
CSharpAppResource

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

Defined on

This method is defined on the following type: