Skip to content
DocsTry Aspire
DocsTry

RustAppExecutableResource Constructors

ClassConstructors1 member
A resource that represents a Rust application.
Constructor(string, string, string)Section titled Constructor(string, string, string)
A resource that represents a Rust application.
public class RustAppExecutableResource
{
public RustAppExecutableResource(
string name,
string workingDirectory,
string command = "cargo")
{
// ...
}
}
namestringThe name of the resource.
workingDirectorystringThe working directory to use for the command.
commandstringoptionalThe command used to run the Rust application.