IDistributedApplicationBuilder.addExecutable

Method
📦 Aspire.Hosting v17.0.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addExecutable(
name: string,
command: string,
workingDirectory: string,
args: string[]): ExecutableResource;
}

Signature

methodaddExecutablebuilder
Adds an executable resource to the application model.
addExecutable(
name: string,
command: string,
workingDirectory: string,
args: string[]): ExecutableResource
namestringThe name of the resource.
commandstringThe executable path. This can be a fully qualified path or a executable to run from the shell/command line.
workingDirectorystringThe working directory of the executable.
argsstring[]The arguments to the executable.
ExecutableResource

Defined on

This method is defined on the following type: