Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddCSharpApp

Method
📦 Aspire.Hosting v17.0.0
func (DistributedApplicationBuilder) 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().

Applies to

This method applies to the following types: