Skip to content

Commit

Permalink
[wasm] Fix build errors due to trimming in System.Reflection.Metadata…
Browse files Browse the repository at this point in the history
…LoadContext

The test project explicitly copies, and needs `mscorlib.dll`, which gets
trimmed out with `EnableAggressiveTrimming=true`. Preserve that.
  • Loading branch information
radical committed Apr 15, 2021
1 parent b09c9cb commit 79fa75b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<linker>
<assembly fullname="mscorlib" />
</linker>
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,7 @@
<WasmFilesToIncludeFromPublishDir Include="System.Private.CoreLib.dll" />
<WasmFilesToIncludeFromPublishDir Include="System.Reflection.MetadataLoadContext.Tests.dll" />
<WasmFilesToIncludeFromPublishDir Include="mscorlib.dll" />

<TrimmerRootDescriptor Include="$(MSBuildThisFileDirectory)ILLink.Descriptors.xml" />
</ItemGroup>
</Project>

0 comments on commit 79fa75b

Please sign in to comment.