File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 10
10
<TargetArchitecture Condition =" '$(TargetArchitecture)' == '' AND '$(BuildArchitecture)' == 'loongarch64'" >$(BuildArchitecture)</TargetArchitecture >
11
11
<TargetArchitecture Condition =" '$(TargetArchitecture)' == ''" >x64</TargetArchitecture >
12
12
<Nullable >enable</Nullable >
13
+ <EnforceCodeStyleInBuild >false</EnforceCodeStyleInBuild >
13
14
</PropertyGroup >
14
15
15
16
<Import Project =" Sdk.props" Sdk =" Microsoft.DotNet.Arcade.Sdk" />
Original file line number Diff line number Diff line change 78
78
</KnownFrameworkReference >
79
79
</ItemGroup >
80
80
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 >
81
98
</Project >
You can’t perform that action at this time.
0 commit comments