diff --git a/src/mono/wasm/Wasm.Build.Tests/Blazor/BuildPublishTests.cs b/src/mono/wasm/Wasm.Build.Tests/Blazor/BuildPublishTests.cs
index 28130327e719b4..9378c052e076ec 100644
--- a/src/mono/wasm/Wasm.Build.Tests/Blazor/BuildPublishTests.cs
+++ b/src/mono/wasm/Wasm.Build.Tests/Blazor/BuildPublishTests.cs
@@ -175,8 +175,8 @@ void AssertResourcesDlls(string basePath)
}
[Theory]
- [InlineData("", false)] // Default case
- [InlineData("true", true)] // the other case
+ [InlineData("", true)] // Default case
+ [InlineData("false", false)] // the other case
public async Task Test_WasmStripILAfterAOT(string stripILAfterAOT, bool expectILStripping)
{
string config = "Release";
diff --git a/src/mono/wasm/Wasm.Build.Tests/Templates/WasmTemplateTests.cs b/src/mono/wasm/Wasm.Build.Tests/Templates/WasmTemplateTests.cs
index 626ae725b15242..4a93f148d0cb9c 100644
--- a/src/mono/wasm/Wasm.Build.Tests/Templates/WasmTemplateTests.cs
+++ b/src/mono/wasm/Wasm.Build.Tests/Templates/WasmTemplateTests.cs
@@ -493,8 +493,8 @@ public void BuildAndRunForDifferentOutputPaths(string config, bool appendRID, bo
}
[Theory]
- [InlineData("", false)] // Default case
- [InlineData("true", true)] // the other case
+ [InlineData("", true)] // Default case
+ [InlineData("false", false)] // the other case
public void Test_WasmStripILAfterAOT(string stripILAfterAOT, bool expectILStripping)
{
string config = "Release";
diff --git a/src/mono/wasm/build/WasmApp.targets b/src/mono/wasm/build/WasmApp.targets
index 6da897b0e81ce1..469425b2c48570 100644
--- a/src/mono/wasm/build/WasmApp.targets
+++ b/src/mono/wasm/build/WasmApp.targets
@@ -88,7 +88,7 @@
- AppBundle/_framework contains generated files (dlls, runtime scripts, icu)
- AppBundle/_content contains web files from nuget packages (css, js, etc)
- $(WasmStripILAfterAOT) - Set to true to enable trimming away AOT compiled methods body (IL code)
- Defaults to false.
+ Defaults to true.
Public items:
- @(WasmExtraFilesToDeploy) - Files to copy to $(WasmAppDir).
@@ -150,7 +150,7 @@
.wasm
.dll
- false
+ true
_framework