Synced
DotNetSdkEnvironment.Create
Section titled “DotNetSdkEnvironment.Create”
- Freezes child-only overrides so the selected executable resolves the project’s own SDK. Null SDK overrides remove inherited variables rather than borrowing a parent’s loaded MSBuild.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Build.Toolchains
Declaration
Section titled “Declaration”public static System.Collections.Generic.IReadOnlyDictionary<string, string?> Inno.Build.Toolchains.DotNetSdkEnvironment.Create(string hostPath, System.Collections.Generic.IReadOnlyDictionary<string, string>? environment = null)Parameters
Section titled “Parameters”Parameter hostPath: The explicitly selected managed executable, resolved to an absolute path before invocation.
Parameter environment: Additional selected toolchain variables to copy, or null when no native SDK environment is required.
Returns
Section titled “Returns”A read-only child environment that preserves selected toolchain settings and never changes the parent.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: The managed executable is blank.
Exception T:System.IO.FileNotFoundException: The selected managed executable cannot be resolved.