Disable code analysis at solution level in Microsoft Visual Studio 2012

前端 未结 5 1615
逝去的感伤
逝去的感伤 2020-12-24 08:47

In our product, there are around 400 projects, so in VS 2012, if I want to make a build then it generates code analysis for all 400 projects and I can\'t manually disable co

5条回答
  •  囚心锁ツ
    2020-12-24 09:38

    You can use a little trick to disable the static code analysis for a whole Visual Studio instance as described here. In short:

    • Open a Developer Command Prompt for VS2012
    • type set DevDivCodeAnalysisRunType=Disabled
    • type devenv to start Visual Studio

    Same solution works for Visual Studio 2015 via Developer Command Prompt for VS2015.

提交回复
热议问题