Synced
ToolchainEnvironment.RunAsync
Section titled “ToolchainEnvironment.RunAsync”
- Runs a host-native process with the context’s frozen compiler and SDK selection.
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, System.Collections.Generic.IReadOnlyList<string> arguments, string workingDirectory, System.Threading.CancellationToken cancellationToken)Parameters
Section titled “Parameters”Parameter context: A context resolved by NativeToolchainSelection before artifact fingerprinting.
Parameter fileName: A selected build command or an absolute executable declared as a component input.
Parameter arguments: Individual arguments passed without shell interpretation.
Parameter workingDirectory: The source snapshot or intermediate directory owned by the operation.
Parameter cancellationToken: Cancels and retires the complete process tree.
Returns
Section titled “Returns”Completion after successful exit and complete output delivery.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: Host tools were not resolved, a command is unavailable or a process fails.
Exception T:System.OperationCanceledException: The operation was canceled.