Skip to content

Commit b6392ad

Browse files
committed
Enable analyzers for AOT and Trimming
1 parent de297f0 commit b6392ad

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/SharpGLTF.Core/SharpGLTF.Core.csproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
88
</PropertyGroup>
99

10+
<PropertyGroup Condition=" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0')) ">
11+
<IsTrimmable>true</IsTrimmable>
12+
</PropertyGroup>
13+
<PropertyGroup Condition=" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0')) ">
14+
<IsAotCompatible>true</IsAotCompatible>
15+
</PropertyGroup>
16+
1017
<PropertyGroup>
1118
<!--
1219
<DefineConstants>TRACE;SUPRESSTRYCATCH</DefineConstants>

0 commit comments

Comments
 (0)