Skip to content

Commit

Permalink
Core: Ensure we don't strip api or plugin members
Browse files Browse the repository at this point in the history
  • Loading branch information
SamboyCoding committed Aug 2, 2024
1 parent ef218d7 commit c568b9e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Cpp2IL.Core/Cpp2IL.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
<IsTrimmable>true</IsTrimmable>
</PropertyGroup>

<ItemGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">
<EmbeddedResource Include="TrimmerRoots.xml">
<LogicalName>ILLink.Descriptors.xml</LogicalName>
</EmbeddedResource>
</ItemGroup>

<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">
<IsAotCompatible>true</IsAotCompatible>
</PropertyGroup>
Expand Down
6 changes: 6 additions & 0 deletions Cpp2IL.Core/TrimmerRoots.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<linker>
<assembly fullname="Cpp2IL.Core">
<type fullname="Cpp2IL.Core.Cpp2IlApi" preserve="all" />
<type fullname="Cpp2IL.Core.Api.Cpp2IlPlugin" preserve="all" />
</assembly>
</linker>

0 comments on commit c568b9e

Please sign in to comment.