Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable code analysis at solution level in Microsoft Visual Studio

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 code analysis for each & every project. So I am looking for a mechanism which disables code analysis for entire solution (all projects) rather then applying those settings to individual projects.

like image 977
Nirav31 Avatar asked Jan 28 '13 08:01

Nirav31


1 Answers

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.

like image 88
ms007 Avatar answered Sep 17 '22 17:09

ms007