Update linker config following Mono upgrade to f382b069151

This commit is contained in:
Steve Sanderson 2018-07-04 10:15:15 +01:00
parent e0168eb0c8
commit f483e6293e
1 changed files with 15 additions and 1 deletions

View File

@ -1,4 +1,4 @@
<linker>
<linker>
<!-- This file specifies which parts of the BCL or Blazor packages must not be stripped
by the IL linker even if they are not referenced by user code. The file format is
@ -8,6 +8,20 @@
<!-- Preserve all methods on WasmRuntime, because these are called by JS-side code
to implement timers. Fixes https://github.com/aspnet/Blazor/issues/239 -->
<type fullname="System.Threading.WasmRuntime" />
<!-- Mono redirects certain string constructor calls to CreateString internally, so preserve them -->
<type fullname="System.String">
<method signature="System.String CreateString(System.Char,System.Int32)" />
<method signature="System.String CreateString(System.Char[])" />
<method signature="System.String CreateString(System.Char[],System.Int32,System.Int32)" />
<method signature="System.String CreateString(System.Char*)" />
<method signature="System.String CreateString(System.Char*,System.Int32,System.Int32)" />
<method signature="System.String CreateString(System.Byte*)" />
<method signature="System.String CreateString(System.Byte*,System.Int32,System.Int32)" />
<method signature="System.String CreateString(System.Byte*,System.Int32,System.Int32,System.Text.Encoding)" />
<method signature="System.String CreateString(System.SByte*)" />
<method signature="System.String CreateString(System.SByte*,System.Int32,System.Int32,System.Text.Encoding)" />
</type>
</assembly>
</linker>