Implement TrimMode=link

This commit is contained in:
JustArchi
2020-11-15 22:37:00 +01:00
parent e6d8200f3a
commit 986090fb9c
3 changed files with 6 additions and 1 deletions

View File

@@ -52,7 +52,7 @@
<!-- Assemblies to include in trimmed builds for plugins usage -->
<ItemGroup>
<TrimmerRootAssembly Include="System.Runtime" />
<TrimmerRootDescriptor Include="TrimmerRoots.xml" />
</ItemGroup>
<ItemGroup>

View File

@@ -0,0 +1,4 @@
<linker>
<!-- We include System.Runtime for plugins usage -->
<assembly fullname="System.Runtime" />
</linker>

View File

@@ -43,6 +43,7 @@
<EnableUnsafeUTF7Encoding>false</EnableUnsafeUTF7Encoding>
<EventSourceSupport>false</EventSourceSupport>
<HttpActivityPropagationSupport>false</HttpActivityPropagationSupport>
<TrimMode>link</TrimMode>
</PropertyGroup>
<PropertyGroup Condition="'$(OS)' == 'Windows_NT' OR '$(ASFNetFramework)' != ''">