Synced
NativeBindingPreparation.PrepareAsync
Section titled “NativeBindingPreparation.PrepareAsync”
- Requests one binding batch for all generated components of a product.
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.NativeBindingGenerationResult> Inno.Build.Toolchains.NativeBindingPreparation.PrepareAsync(Inno.Build.Toolchains.NativeBuildContext context, System.Collections.Generic.IReadOnlyList<Inno.Build.Toolchains.NativeComponentDescriptor> components, System.Threading.CancellationToken cancellationToken, System.Collections.Generic.IReadOnlyDictionary<string, Inno.Build.Toolchains.NativeComponentBuildOptions>? componentOptions = null)Parameters
Section titled “Parameters”Parameter context: The operation owning a frozen target selection and configured generator.
Parameter components: The declared component closure; components without bindings are excluded.
Parameter cancellationToken: Cancels generation and drains active work before returning.
Parameter componentOptions: Exact per-owner component choices, or null for component defaults.
Returns
Section titled “Returns”An owned generation closure, empty for a product without bindings. Retain it through final consumption.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: The tool selection or required binding generator is absent.