<DefineConstants>$(DefineConstants);NETSTANDARD</DefineConstants>
<!--Remove once this is fixed, https://github.com/dotnet/runtime/issues/71506 -->
<IlcTrimMetadata>false</IlcTrimMetadata>
+
+ <!-- this test project is too slow with extra start of another runtime -->
+ <WasmXHarnessMonoArgs>$(WasmXHarnessMonoArgs) --no-memory-snapshot</WasmXHarnessMonoArgs>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetOS)' == 'browser'">
runArgs.configSrc = runArgs.configSrc === undefined ? './mono-config.json' : runArgs.configSrc;
// default'ing to true for tests, unless debugging
runArgs.forwardConsole = runArgs.forwardConsole === undefined ? !runArgs.debugging : runArgs.forwardConsole;
+ runArgs.memorySnapshot = runArgs.memorySnapshot === undefined ? true : runArgs.memorySnapshot;
return runArgs;
}
runArgs.debugging = true;
} else if (currentArg == "--no-forward-console") {
runArgs.forwardConsole = false;
+ } else if (currentArg == "--no-memory-snapshot") {
+ runArgs.memorySnapshot = false;
} else if (currentArg.startsWith("--fetch-random-delay=")) {
const arg = currentArg.substring("--fetch-random-delay=".length);
if (is_browser) {
}
}
if (is_browser) {
- dotnet
- .withStartupMemoryCache(true)
- .withEnvironmentVariable("IsWebSocketSupported", "true");
+ if (runArgs.memorySnapshot) {
+ dotnet.withStartupMemoryCache(true);
+ }
+ dotnet.withEnvironmentVariable("IsWebSocketSupported", "true");
}
if (runArgs.runtimeArgs.length > 0) {
dotnet.withRuntimeOptions(runArgs.runtimeArgs);
const runArgs = await getArgs();
console.log("Application arguments: " + runArgs.applicationArguments.join(' '));
- if (is_browser) {
+ if (is_browser && runArgs.memorySnapshot) {
const dryOk = await dry_run(runArgs);
if (!dryOk) {
mono_exit(1, "Failed during dry run");