File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 7878 </KnownFrameworkReference >
7979 </ItemGroup >
8080
81+ <PropertyGroup >
82+ <CoreCompileDependsOn >$(CoreCompileDependsOn);RemoveCodeStyleAnalyzers</CoreCompileDependsOn >
83+ </PropertyGroup >
84+
85+ <!--
86+ CodeStyle analyzers inserted in the SDK might not be compatible with the current public version of Visual Studio,
87+ which causes failures when building from the IDE.
88+ -->
89+ <Target Name =" RemoveCodeStyleAnalyzers" Condition =" '$(BuildingInsideVisualStudio)' == 'true'" >
90+ <ItemGroup >
91+ <Analyzer Remove =" @(Analyzer)" Condition ="
92+ '%(FileName)' == 'Microsoft.CodeAnalysis.CodeStyle' or
93+ '%(FileName)' == 'Microsoft.CodeAnalysis.CodeStyle.Fixes' or
94+ '%(FileName)' == 'Microsoft.CodeAnalysis.CSharp.CodeStyle' or
95+ '%(FileName)' == 'Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes'" />
96+ </ItemGroup >
97+ </Target >
8198</Project >
You can’t perform that action at this time.
0 commit comments