DotNetSdkResolver.ResolveDirectoryAsync
Section titled “DotNetSdkResolver.ResolveDirectoryAsync”
- Selects the SDK from an authoring owner’s directory before any temporary evaluation project is created.
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.ResolveDirectoryAsync(string hostPath, string ownerDirectory, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Parameters
Section titled “Parameters”Parameter hostPath: The managed host explicitly selected by the composition root.
Parameter ownerDirectory: The existing source owner whose ancestor global.json rules govern the operation.
Parameter cancellationToken: Cancels discovery and drains the SDK process.
Returns
Section titled “Returns”The selected SDK and fixed managed CLI path, without probing reference pack directories.
Exceptions
Section titled “Exceptions”Exception T:System.IO.DirectoryNotFoundException: The source owner directory does not exist.
Exception T:System.IO.FileNotFoundException: The host or selected SDK CLI is missing.
Exception T:System.InvalidOperationException: The host cannot resolve the source owner’s requested SDK.
Exception T:System.OperationCanceledException: The caller cancels SDK discovery.