Skip to content

Commit

Permalink
Enable EnableAotAnalyzer only in .NET 8.0 compatible TFMs [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfeeddeadbeef committed Jul 11, 2024
1 parent b64201b commit 0ef4567
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
<DebugType>embedded</DebugType>
<EnablePackageValidation>true</EnablePackageValidation>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<EnableAotAnalyzer>true</EnableAotAnalyzer>
<EnableSingleFileAnalyzer>true</EnableSingleFileAnalyzer>
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
<AnalysisLevel>latest-all</AnalysisLevel>
Expand All @@ -39,6 +38,10 @@
<WarningsAsErrors>NU1605</WarningsAsErrors>
</PropertyGroup>

<PropertyGroup Condition=" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0')) ">
<EnableAotAnalyzer>true</EnableAotAnalyzer>
</PropertyGroup>

<PropertyGroup Condition=" '$(TF_BUILD)' == 'True' or '$(GITHUB_ACTIONS)' == 'true' ">
<Deterministic>true</Deterministic>
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
Expand Down
5 changes: 4 additions & 1 deletion src/TBC.OpenBanking.Jws/src/TBC.OpenBanking.Jws.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
<DebugType>embedded</DebugType>
<EnablePackageValidation>true</EnablePackageValidation>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<EnableAotAnalyzer>true</EnableAotAnalyzer>
<EnableSingleFileAnalyzer>true</EnableSingleFileAnalyzer>
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
<AnalysisLevel>latest-all</AnalysisLevel>
Expand All @@ -40,6 +39,10 @@
<WarningsAsErrors>NU1605</WarningsAsErrors>
</PropertyGroup>

<PropertyGroup Condition=" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0')) ">
<EnableAotAnalyzer>true</EnableAotAnalyzer>
</PropertyGroup>

<PropertyGroup Condition=" '$(TF_BUILD)' == 'True' or '$(GITHUB_ACTIONS)' == 'true' ">
<Deterministic>true</Deterministic>
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
Expand Down

0 comments on commit 0ef4567

Please sign in to comment.