Skip to content

Commit 96c1315

Browse files
committed
Don't set IsAotCompatible on net6.0 build (not supported there)
1 parent c497ca7 commit 96c1315

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ExCSS/ExCSS.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,15 @@
3333

3434
<!-- Trimming parameters -->
3535
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">
36-
<IsAotCompatible>true</IsAotCompatible>
3736
<IsTrimmable>true</IsTrimmable>
3837
<SuppressTrimAnalysisWarnings>false</SuppressTrimAnalysisWarnings>
3938
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
4039
</PropertyGroup>
40+
<!-- AOT parameters -->
41+
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">
42+
<IsAotCompatible>true</IsAotCompatible>
43+
<EnableAotAnalyzer>true</EnableAotAnalyzer>
44+
</PropertyGroup>
4145

4246
<PropertyGroup Condition="'$(TargetFramework)' != ''">
4347
<LangVersion>9.0</LangVersion>

0 commit comments

Comments
 (0)