feat: ready for 11.1.0.

This commit is contained in:
Zhang Dian
2024-07-03 23:39:17 +08:00
parent 678bcdef9c
commit b487dc9307
14 changed files with 70 additions and 41 deletions

View File

@@ -0,0 +1,13 @@
import { dotnet } from './_framework/dotnet.js'
const is_browser = typeof window != "undefined";
if (!is_browser) throw new Error(`Expected to be running in a browser`);
const dotnetRuntime = await dotnet
.withDiagnosticTracing(false)
.withApplicationArgumentsFromQuery()
.create();
const config = dotnetRuntime.getConfig();
await dotnetRuntime.runMain(config.mainAssemblyName, [window.location.search]);