您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213
  1. import { dotnet } from './dotnet.js'
  2. const is_browser = typeof window != "undefined";
  3. if (!is_browser) throw new Error(`Expected to be running in a browser`);
  4. const dotnetRuntime = await dotnet
  5. .withDiagnosticTracing(false)
  6. .withApplicationArgumentsFromQuery()
  7. .create();
  8. const config = dotnetRuntime.getConfig();
  9. await dotnetRuntime.runMainAndExit(config.mainAssemblyName, [window.location.search]);