Skip to content

Commit 79fa75b

Browse files
committed
[wasm] Fix build errors due to trimming in System.Reflection.MetadataLoadContext
The test project explicitly copies, and needs `mscorlib.dll`, which gets trimmed out with `EnableAggressiveTrimming=true`. Preserve that.
1 parent b09c9cb commit 79fa75b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<linker>
2+
<assembly fullname="mscorlib" />
3+
</linker>

src/libraries/System.Reflection.MetadataLoadContext/tests/System.Reflection.MetadataLoadContext.Tests.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,7 @@
7878
<WasmFilesToIncludeFromPublishDir Include="System.Private.CoreLib.dll" />
7979
<WasmFilesToIncludeFromPublishDir Include="System.Reflection.MetadataLoadContext.Tests.dll" />
8080
<WasmFilesToIncludeFromPublishDir Include="mscorlib.dll" />
81+
82+
<TrimmerRootDescriptor Include="$(MSBuildThisFileDirectory)ILLink.Descriptors.xml" />
8183
</ItemGroup>
8284
</Project>

0 commit comments

Comments
 (0)