Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddNxApp

Method
📦 CommunityToolkit.Aspire.Hosting.JavaScript.Extensions v13.6.1
func (DistributedApplicationBuilder) AddNxApp(
name string,
options ...*AddNxAppOptions,
) NxResource

Signature

methodAddNxAppbuilder
Adds an Nx monorepo workspace to the distributed application builder.
AddNxApp(
name string,
options ...*AddNxAppOptions,
) NxResource
namestringThe name of the Nx workspace resource.
options...*AddNxAppOptionsOptional settings, described under Options.

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

WorkingDirectory*stringThe working directory of the Nx workspace. If not specified, it will be set to a path that is a sibling of the AppHost directory using the name as the folder.
NxResource

A reference to the IResourceBuilder.

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

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder