Synced
ToolchainEnvironment.RunAsync
Section titled “ToolchainEnvironment.RunAsync”
- Runs a quoted host command with a frozen compiler and SDK environment.
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(Inno.Build.Toolchains.NativeBuildContext context, string fileName, string arguments, string workingDirectory, System.Threading.CancellationToken cancellationToken)Parameters
Section titled “Parameters”Parameter context: The context resolved before artifact fingerprinting.
Parameter fileName: A selected command or an absolute executable declared in the component inputs.
Parameter arguments: Arguments quoted for the selected executable’s command-line parser.
Parameter workingDirectory: The operation’s source snapshot or intermediate directory.
Parameter cancellationToken: Cancels and retires the complete process tree.
Returns
Section titled “Returns”Completion after the command exits successfully and its streams drain.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: Tools are unresolved or execution fails.
Exception T:System.OperationCanceledException: The operation was canceled.