Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Selects the SDK from an authoring owner’s directory before any temporary evaluation project is created.

API: engine
Project: Inno.Build.Toolchains

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))

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.

The selected SDK and fixed managed CLI path, without probing reference pack directories.

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.