bed48a7bb6
* Added BuildTests projects * Added VerifyXamlCompilation build target * Use TargetsTriggerByCompilation for XAML compilation * Add *.binlog to gitignore * VerifyXamlCompilation target: set NuGetPackageRoot * Ensure WpfHybrid build test uses two markup compilation passes * Fail build tests restore immediately if AvaloniaVersion isn't set * Fix "could not extract MVID" for up-to-date builds * Run VerifyXamlCompilation on CI * Add FSharp build test
14 lines
423 B
JavaScript
14 lines
423 B
JavaScript
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]);
|