Skip to content

Commit c568b9e

Browse files
committed
Core: Ensure we don't strip api or plugin members
1 parent ef218d7 commit c568b9e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Diff for: Cpp2IL.Core/Cpp2IL.Core.csproj

+6
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@
2828
<IsTrimmable>true</IsTrimmable>
2929
</PropertyGroup>
3030

31+
<ItemGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">
32+
<EmbeddedResource Include="TrimmerRoots.xml">
33+
<LogicalName>ILLink.Descriptors.xml</LogicalName>
34+
</EmbeddedResource>
35+
</ItemGroup>
36+
3137
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">
3238
<IsAotCompatible>true</IsAotCompatible>
3339
</PropertyGroup>

Diff for: Cpp2IL.Core/TrimmerRoots.xml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<linker>
2+
<assembly fullname="Cpp2IL.Core">
3+
<type fullname="Cpp2IL.Core.Cpp2IlApi" preserve="all" />
4+
<type fullname="Cpp2IL.Core.Api.Cpp2IlPlugin" preserve="all" />
5+
</assembly>
6+
</linker>

0 commit comments

Comments
 (0)