2024-07-10 15:27:38 +00:00
|
|
|
|
import { dotnet } from './_framework/dotnet.js'
|
2023-07-24 10:05:33 +00:00
|
|
|
|
|
|
|
|
|
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();
|
|
|
|
|
|
2024-07-10 15:27:38 +00:00
|
|
|
|
await dotnetRuntime.runMain(config.mainAssemblyName, [window.location.search]);
|