Synced
DotNetSdkResolver.ResolveAsync
Section titled “DotNetSdkResolver.ResolveAsync”
- Asks the selected host to resolve its SDK from the project location without guessing installed versions.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Build.Toolchains
Declaration
Section titled “Declaration”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))Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”The exact project-selected SDK, managed entry assembly and host; missing SDKs fail explicitly.
Exceptions
Section titled “Exceptions”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.