Disable code analysis at solution level in Microsoft Visual Studio 2012

前端 未结 5 1641
逝去的感伤
逝去的感伤 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:40

    Not sure there is an easy to do this with VS2012. CodeAnalysis is defined at project level and depends on your build configuration. For example, there is no code analysis in Release.

    First, try to create a configuration based on Release.

    Another solution (but very bad) may be to run a batch to modify all your project files.

    Here is a sample project file (check the element named RunCodeAnalysis) :

      
        true
        full
        false
        bin\Debug\
        DEBUG;TRACE
        prompt
        4
        false
      
      
        pdbonly
        true
        bin\Release\
        TRACE
        prompt
        4
      
      
    

提交回复
热议问题