Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Asks the selected host to resolve its SDK from the project location without guessing installed versions.

API: engine
Project: Inno.Build.Toolchains

public static System.Threading.Tasks.ValueTask<Inno.Build.Toolchains.DotNetSdkDescriptor> Inno.Build.Toolchains.DotNetSdkResolver.ResolveAsync(string hostPath, string projectPath, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))

Parameter hostPath: The .NET executable selected by the build composition root.

Parameter projectPath: The prepared entry project whose directory controls SDK selection.

Parameter cancellationToken: Cancels SDK discovery and drains its child process.

The exact project-selected SDK, managed entry assembly and host; missing SDKs fail explicitly.

Exception T:System.IO.FileNotFoundException: The selected host, prepared entry project or selected SDK entry assembly does not exist.

Exception T:System.InvalidOperationException: The selected host cannot resolve a valid SDK identity and absolute base path.