Synced
ToolchainEnvironment.RunAsync
Section titled “ToolchainEnvironment.RunAsync”
- Runs a child build using a complete argument string, without a shell.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Build.Toolchains
Declaration
Section titled “Declaration”public static System.Threading.Tasks.Task Inno.Build.Toolchains.ToolchainEnvironment.RunAsync(string fileName, string arguments, string workingDirectory, System.Threading.CancellationToken cancellationToken)Parameters
Section titled “Parameters”Parameter fileName: The executable resolved by the host operating system.
Parameter arguments: Arguments quoted for the selected executable’s command-line parser.
Parameter workingDirectory: The directory owned by the operation.
Parameter cancellationToken: Cancels the complete process tree and waits for output to finish draining.
Returns
Section titled “Returns”Completion after successful exit; failures and cancellation propagate.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: The process fails to start or exits unsuccessfully.
Exception T:System.OperationCanceledException: The operation was canceled.
Exception T:System.IO.IOException: Redirected output cannot be read or forwarded; the process tree is terminated before failure returns.