From dbf4945007de6ea7cbfe00796427c2a028997189 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Fri, 13 Jan 2023 23:56:55 +0000 Subject: [PATCH 1/3] [wasm] Set TrimMode=full for templates --- src/mono/wasm/templates/templates/browser/browser.0.csproj | 1 + src/mono/wasm/templates/templates/console/console.0.csproj | 1 + 2 files changed, 2 insertions(+) diff --git a/src/mono/wasm/templates/templates/browser/browser.0.csproj b/src/mono/wasm/templates/templates/browser/browser.0.csproj index c657ec07706ef..5d6ea41c1bc82 100644 --- a/src/mono/wasm/templates/templates/browser/browser.0.csproj +++ b/src/mono/wasm/templates/templates/browser/browser.0.csproj @@ -5,6 +5,7 @@ main.js Exe true + full diff --git a/src/mono/wasm/templates/templates/console/console.0.csproj b/src/mono/wasm/templates/templates/console/console.0.csproj index 5e1c6b8ae28c2..905812cabdebd 100644 --- a/src/mono/wasm/templates/templates/console/console.0.csproj +++ b/src/mono/wasm/templates/templates/console/console.0.csproj @@ -5,5 +5,6 @@ main.mjs Exe true + full From b9dfd737220ceb6dff6918add09e5a6fbdd40e6b Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Sat, 14 Jan 2023 16:45:56 -0500 Subject: [PATCH 2/3] [wasm] Remove TrimMode=partial default setting .. and set TrimMode=partial for library tests. --- eng/testing/tests.wasm.targets | 1 + src/mono/wasm/build/WasmApp.props | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/testing/tests.wasm.targets b/eng/testing/tests.wasm.targets index 2d23e4fcf91e1..6aa83a3d8f6bf 100644 --- a/eng/testing/tests.wasm.targets +++ b/eng/testing/tests.wasm.targets @@ -6,6 +6,7 @@ false $(BundleTestAppTargets);BundleTestWasmApp true + partial $([MSBuild]::NormalizeDirectory($(MonoProjectRoot), 'wasm', 'emsdk')) diff --git a/src/mono/wasm/build/WasmApp.props b/src/mono/wasm/build/WasmApp.props index 1b8b651d74cc9..88f479968888d 100644 --- a/src/mono/wasm/build/WasmApp.props +++ b/src/mono/wasm/build/WasmApp.props @@ -4,7 +4,6 @@ browser browser-wasm true - partial <_WasmBuildCoreDependsOn> _InitializeCommonProperties; From 4c15c15e658d1d55817f061f159d6cc6499ba097 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Sat, 14 Jan 2023 16:48:53 -0500 Subject: [PATCH 3/3] [wasm] don't set TrimMode explicitly for template projects. it will default to full now --- src/mono/wasm/templates/templates/browser/browser.0.csproj | 1 - src/mono/wasm/templates/templates/console/console.0.csproj | 1 - 2 files changed, 2 deletions(-) diff --git a/src/mono/wasm/templates/templates/browser/browser.0.csproj b/src/mono/wasm/templates/templates/browser/browser.0.csproj index 5d6ea41c1bc82..c657ec07706ef 100644 --- a/src/mono/wasm/templates/templates/browser/browser.0.csproj +++ b/src/mono/wasm/templates/templates/browser/browser.0.csproj @@ -5,7 +5,6 @@ main.js Exe true - full diff --git a/src/mono/wasm/templates/templates/console/console.0.csproj b/src/mono/wasm/templates/templates/console/console.0.csproj index 905812cabdebd..5e1c6b8ae28c2 100644 --- a/src/mono/wasm/templates/templates/console/console.0.csproj +++ b/src/mono/wasm/templates/templates/console/console.0.csproj @@ -5,6 +5,5 @@ main.mjs Exe true - full