Skip to content
Docs Try Aspire
Docs Try

ProcessCommandSpec Properties

Class Properties 7 members
Describes a local process that is started when a process-backed resource command executes.
Arguments Section titled Arguments IReadOnlyList<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.

EnvironmentVariables Section titled EnvironmentVariables IDictionary<string, string>
Gets or sets the environment variables to set for the process.
public IDictionary<string, string> EnvironmentVariables { get; init; }
ExecutablePath Section titled ExecutablePath string
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.

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