Synced
NativeCMakeExecutor.PrepareSourceAsync
Section titled “NativeCMakeExecutor.PrepareSourceAsync”
- Copies the recipe’s declared checkout inputs before a cold CMake invocation.
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.NativeCMakeSource> Inno.Build.Toolchains.NativeCMakeExecutor.PrepareSourceAsync(Inno.Build.Toolchains.NativeBuildContext context, Inno.Build.Toolchains.NativeComponentDescriptor component, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Parameters
Section titled “Parameters”Parameter context: The producer scope supplied by NativeArtifactPublisher while holding its intermediate lease.
Parameter component: The sole owner of the intermediate source copy.
Parameter cancellationToken: Cancels copying before the source candidate is installed.
Returns
Section titled “Returns”The same prepared input descriptor for subsequent invocations in this producer scope.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: No recipe scope exists or an input changed during copying.
Exception T:System.OperationCanceledException: Copying was canceled before publication.
Exception T:System.ArgumentNullException: The context or component is null.