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
You can use a little trick to disable the static code analysis for a whole Visual Studio instance as described here. In short:
Developer Command Prompt for VS2012
set DevDivCodeAnalysisRunType=Disabled
devenv
to start Visual StudioSame solution works for Visual Studio 2015 via Developer Command Prompt for VS2015
.