Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Runs a child build using a complete argument string, without a shell.

API: engine
Project: Inno.Build.Toolchains

public static System.Threading.Tasks.Task Inno.Build.Toolchains.ToolchainEnvironment.RunAsync(string fileName, string arguments, string workingDirectory, System.Threading.CancellationToken cancellationToken)

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.

Completion after successful exit; failures and cancellation propagate.

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.