Skip to content
DocsTry Aspire
DocsTry

DotnetProjectResource Constructors

ClassConstructors1 member
A resource that represents a specified C# project or file-based app added by path.
Initializes a new instance of the DotnetProjectResource class.
public class DotnetProjectResource
{
public DotnetProjectResource(
string name,
string workingDirectory)
{
// ...
}
}
namestringThe name of the resource in the application model.
workingDirectorystringThe working directory for the app, typically the directory containing the project or .cs file.