Skip to content

Commit 8021ec0

Browse files
author
billal mesloub
authored
Merge pull request #4 from ds5678/trim-and-aot-analyzers
Enable analyzers for AOT and Trimming
2 parents bb2b68a + b6392ad commit 8021ec0

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)