Skip to content

Commit b4fb2e3

Browse files
bmehta001Copilot
andcommitted
Restore WinML bootstrap auto-detection
Restore the bootstrap auto-detection behavior that 4a7dde2 removed across the C#, JS, Python, and Rust SDKs, while leaving the C# WinML minimum-version alignment intact. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d53ee3b commit b4fb2e3

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

sdk/cs/src/Detail/CoreInterop.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ internal CoreInterop(Configuration config, ILogger logger)
5959
var request = new CoreInteropRequest { Params = config.AsDictionary() };
6060
PrepareWinMLBootstrap(request);
6161

62+
#if IS_WINML
63+
// WinML builds require bootstrapping the Windows App Runtime
64+
if (!request.Params.ContainsKey("Bootstrap"))
65+
{
66+
request.Params["Bootstrap"] = "true";
67+
}
68+
#endif
69+
6270
var response = ExecuteCommand("initialize", request);
6371

6472
if (response.Error != null)

0 commit comments

Comments
 (0)