移除部分项目

This commit is contained in:
fengjiayi
2025-01-02 13:57:14 +08:00
parent 28df2d8fce
commit 665a722f68
17 changed files with 251 additions and 0 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, [globalThis.location.href]);