Skip to content
DocsTry Aspire
DocsTry

NxAppResource Constructors

ClassConstructors1 member
A resource that represents a Node.js application running under Nx.
Constructor(string, string, string, string)Section titled Constructor(string, string, string, string)
A resource that represents a Node.js application running under Nx.
public class NxAppResource
{
public NxAppResource(
string name,
string workingDirectory,
string appName,
string command = "nx")
{
// ...
}
}
namestringThe name of the resource.
workingDirectorystringThe working directory of the application.
appNamestringThe Nx app name to run (used in 'nx serve {appName}').
commandstringoptionalThe command to run (default is 'nx').