Enable full trimming

This commit is contained in:
Aaron Robinson 2025-11-19 00:32:38 -06:00
parent 45193dcc8d
commit 4f5eea3417
3 changed files with 12 additions and 1 deletions

View file

@ -2,5 +2,8 @@
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<LangVersion>preview</LangVersion>
<IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">true</IsTrimmable>
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
<UseArtifactsOutput>true</UseArtifactsOutput>
</PropertyGroup>
</Project>

View file

@ -26,7 +26,6 @@
<PublishSingleFile>true</PublishSingleFile>
<TrimmerSingleWarn>false</TrimmerSingleWarn>
<PublishTrimmed>true</PublishTrimmed>
<TrimMode>partial</TrimMode>
</PropertyGroup>
<PropertyGroup Condition="'$(RuntimeIdentifier)' == 'win-arm64'">
@ -180,4 +179,8 @@
<ItemGroup>
<AdditionalFiles Include="..\..\assets\Locales\*.json" />
</ItemGroup>
<ItemGroup>
<TrimmerRootDescriptor Include="TrimmerRoots.xml" />
</ItemGroup>
</Project>

View file

@ -0,0 +1,5 @@
<linker>
<assembly fullname="Ryujinx.HLE">
<type fullname="Ryujinx.HLE.HOS.Services*" preserve="all"/>
</assembly>
</linker>