Skip to content

Commit

Permalink
Use older AnalysisMode tag for code analysis
Browse files Browse the repository at this point in the history
The hyphenated form of AnalysisLevel is a .NET 6 preview thing, oops. The older Mode tag works in earlier versions, but remember it may need a companion AnalysisLevel tag set to an actual version number when building with preview .NET.
  • Loading branch information
ItEndsWithTens committed Sep 23, 2021
1 parent 0383754 commit fead830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<DebugType>full</DebugType>

<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>latest-all</AnalysisLevel>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
</PropertyGroup>

Expand Down

0 comments on commit fead830

Please sign in to comment.