Skip to content

Commit d9258c2

Browse files
committed
Add trimming/aot propertys in net6.0+ targets
1 parent b0e2f46 commit d9258c2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ExCSS/ExCSS.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@
3131
-->
3232
</PropertyGroup>
3333

34+
<!-- Trimming parameters -->
35+
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">
36+
<IsAotCompatible>true</IsAotCompatible>
37+
<IsTrimmable>true</IsTrimmable>
38+
<SuppressTrimAnalysisWarnings>false</SuppressTrimAnalysisWarnings>
39+
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
40+
</PropertyGroup>
41+
3442
<PropertyGroup Condition="'$(TargetFramework)' != ''">
3543
<LangVersion>9.0</LangVersion>
3644
</PropertyGroup>

0 commit comments

Comments
 (0)