Skip to content

Commit

Permalink
Add check for EffectiveAnalysisLevelStyle in code style targets
Browse files Browse the repository at this point in the history
Fixes dotnet#71260

Regressed with dotnet#71173
  • Loading branch information
mavasani committed Dec 14, 2023
1 parent dac4599 commit 3a20809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CodeStyle/Tools/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ and an implied numerical option (such as '4') -->
<!-- From .NET 9, the global config is systematically added if the file exists. Please check https://github.com/dotnet/roslyn/pull/71173 for more info. -->
<ItemGroup Condition="Exists('$(_GlobalAnalyzerConfigFile_MicrosoftCodeAnalysis{language}CodeStyle)') and
('$(AnalysisLevelStyle)' != '$(AnalysisLevel)' or '$(AnalysisModeStyle)' != '$(AnalysisMode)' or $([MSBuild]::VersionGreaterThanOrEquals('$(EffectiveAnalysisLevelStyle)', '9.0')))">
('$(AnalysisLevelStyle)' != '$(AnalysisLevel)' or '$(AnalysisModeStyle)' != '$(AnalysisMode)' or ('$(EffectiveAnalysisLevelStyle)' != '' and $([MSBuild]::VersionGreaterThanOrEquals('$(EffectiveAnalysisLevelStyle)', '9.0'))))">
<EditorConfigFiles Include="$(_GlobalAnalyzerConfigFile_MicrosoftCodeAnalysis{language}CodeStyle)" />
</ItemGroup>
Expand Down

0 comments on commit 3a20809

Please sign in to comment.