Files
Avalonia/tests/BuildTests/BuildTests.Browser/wwwroot/main.js
T
Julien Lebosquain bed48a7bb6 Rework XAML compilation targets (#17539)
* 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
2024-11-25 18:25:06 -08:00

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