Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddDotnetProject

Method
📦 Aspire.Hosting.Dotnet v17.0.0
func (DistributedApplicationBuilder) AddDotnetProject(
name string,
path string,
options ...*DotnetProjectOptions,
) DotnetProjectResource

Signature

methodAddDotnetProjectbuilder
Adds a .NET application resource.
AddDotnetProject(
name string,
path string,
options ...*DotnetProjectOptions,
) DotnetProjectResource
namestring
pathstring
options...*DotnetProjectOptionsOptional settings, described under Options.

Optional parameters are passed as the existing *DotnetProjectOptions struct.

DotnetProjectResource

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

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder