Skip to content
DocsTry Aspire
DocsTry

ProcessCommandSpec Properties

ClassProperties7 members
Describes a local process that is started when a process-backed resource command executes.
ArgumentsSection titled ArgumentsIReadOnlyList<string>
Gets or sets the command-line arguments for the process.
public IReadOnlyList<string> Arguments { get; init; }

Arguments are passed using ProcessStartInfo.ArgumentList so that each item is escaped according to the current platform's process-start rules.

EnvironmentVariablesSection titled EnvironmentVariablesIDictionary<string, string>
Gets or sets the environment variables to set for the process.
public IDictionary<string, string> EnvironmentVariables { get; init; }
ExecutablePathSection titled ExecutablePathstring
Gets the executable path or command name to start.
public string ExecutablePath { get; }

Command names without directory separators are resolved from the AppHost process PATH before starting the process.

InheritEnvironmentVariablesSection titled InheritEnvironmentVariablesbool
Gets or sets a value indicating whether the process should inherit the current environment variables.
public bool InheritEnvironmentVariables { get; init; }
KillEntireProcessTreeSection titled KillEntireProcessTreebool
Gets or sets a value indicating whether the entire process tree should be killed when the process is disposed.
public bool KillEntireProcessTree { get; init; }
StandardInputContentSection titled StandardInputContentnullablestring?
Gets or sets standard input content to write to the process after it starts.
public string? StandardInputContent { get; init; }
WorkingDirectorySection titled WorkingDirectorynullablestring?
Gets or sets the working directory for the process.
public string? WorkingDirectory { get; init; }