You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 yıl önce
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]);