Просмотр исходного кода

Do not upgrade warnings to errors in VS (#39845)

Now that we have enabled a bunch of code analysis, we've discovered it adds friction to the dev process. This change aims to reduce the friction by preventing warnings to be upgraded to errors in VS. This way you can continue developing, while possible issues are still surfaced. E.g. from a recent error:
Pranav K 4 лет назад
Родитель
Сommit
4f84af885f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      eng/tools/GenerateFiles/Directory.Build.props.in

+ 1 - 1
eng/tools/GenerateFiles/Directory.Build.props.in

@@ -1,6 +1,6 @@
 <Project>
   <PropertyGroup>
     <DefaultNetCoreTargetFramework>${DefaultNetCoreTargetFramework}</DefaultNetCoreTargetFramework>
-    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+    <TreatWarningsAsErrors Condition="'$(BuildingInsideVisualStudio)' != 'true'">true</TreatWarningsAsErrors>
   </PropertyGroup>
 </Project>