Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

13 lines
419B

  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]);