Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • 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.

API: engine
Project: Inno.Build.Toolchains

public static System.Collections.Generic.IReadOnlyDictionary<string, string?> Inno.Build.Toolchains.DotNetSdkEnvironment.Create(string hostPath, System.Collections.Generic.IReadOnlyDictionary<string, string>? environment = null)

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.

A read-only child environment that preserves selected toolchain settings and never changes the parent.

Exception T:System.ArgumentException: The managed executable is blank.

Exception T:System.IO.FileNotFoundException: The selected managed executable cannot be resolved.