Skip to content

Commit

Permalink
Include CodeStyle targets files even when not enforcing code style in…
Browse files Browse the repository at this point in the history
… build

Please see the PR description in dotnet/roslyn#72238 (comment), which gives a background on this fix. This change along with that Roslyn PR is needed for fixing the regression in dotnet/roslyn#72094
  • Loading branch information
mavasani authored Feb 23, 2024
1 parent 3075c3b commit da82206
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ Copyright (c) .NET Foundation. All rights reserved.
Condition="$(EnableNETAnalyzers)" />

<Import Project="$(MSBuildThisFileDirectory)..\codestyle\cs\build\Microsoft.CodeAnalysis.CSharp.CodeStyle.targets"
Condition="$(EnforceCodeStyleInBuild) And '$(Language)' == 'C#'" />
Condition="'$(Language)' == 'C#'" />
<Import Project="$(MSBuildThisFileDirectory)..\codestyle\vb\build\Microsoft.CodeAnalysis.VisualBasic.CodeStyle.targets"
Condition="$(EnforceCodeStyleInBuild) And '$(Language)' == 'VB'" />
Condition="'$(Language)' == 'VB'" />

<!-- .NET Analyzers -->
<ItemGroup Condition="$(EnableNETAnalyzers)">
Expand Down

0 comments on commit da82206

Please sign in to comment.