4b1ca3811e
* MVP SingleProject support for all supported platforms * Convert MobileSandbox to be a single project * WASM fixes * Fix SDK CI version * Use .NET 8 in build project as well * Add EnableUnsafeBinaryFormatterSerialization * Add macos workload, remove wasm-experimental * And ios * Specify TFM for single-project projects in dirs.proj * Return deleted line * Set PrivateAssets=all on MobileSandbox * Add ios target only on non-linux in MobileSandbox * Update after merges * Update browser sub-project from the templates * Don't build MobileSandbox on CI * Couple of improvements * Add android hack to run without manifest * Add tvOS support and rearrange some properties * Delete unusable Packages.targets file + related * Add global Condition for AvaloniaSingleProject.targets
14 lines
424 B
JavaScript
14 lines
424 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, [window.location.search]);
|