Skip to content

Commit cc3c1d0

Browse files
authored
Remove unnecessary entries in LinkerWorkaround for WASM. (#23747)
* The underlying Json issue is fixed. * The X509 issue is not an issue when TrimMode is set to link (which is it now by default). Contributes to #23262
1 parent f1dd68f commit cc3c1d0

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/LinkerWorkaround.xml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,4 @@
1212
<type fullname="System.ComponentModel.GuidConverter" />
1313
<type fullname="System.ComponentModel.TimeSpanConverter" />
1414
</assembly>
15-
16-
<assembly fullname="System.Text.Json">
17-
<!-- S.T.J. uses Activator.CreateInstance to instantiate converters, so we need to preserve default constructors.
18-
For safety, do this for all converter types, even though most of them are preserved anyway due to being referenced
19-
statically. It's only JsonStringEnumConverter that currently isn't referenced statically.
20-
The following is a workaround for https://github.com/dotnet/aspnetcore/issues/19086.
21-
The underlying issue is reported in the runtime repo at https://github.com/dotnet/runtime/issues/34449 -->
22-
<type fullname="System.Text.Json.Serialization.*Converter">
23-
<method signature="System.Void .ctor()" />
24-
</type>
25-
</assembly>
26-
27-
<!-- Workaround for https://github.com/mono/linker/issues/1298 -->
28-
<assembly fullname="System.Security.Cryptography.X509Certificates" />
2915
</linker>

0 commit comments

Comments
 (0)