I am building my VS solutions with DevEnv command line. However on build it shows lots of warning related to code analysis. Is there any way I can specify in command line not to run code analysis for Devenv?
Thanks
I am building my VS solutions with DevEnv command line. However on build it shows lots of warning related to code analysis. Is there any way I can specify in command line not to run code analysis for Devenv?
Thanks
Building with Devenv has been deprecated since VS2010, you should be using MSBuild.exe instead.
Whether code analysis is performed is determined by the <RunCodeAnalysis>
property in your project. You can override property values with the MSBuild /p
command line option. For example:
MSBuild yadayada.sln /p:runcodeanalysis=false
There certainly should not be any reason why you get code analysis warnings in a command line build but not in an IDE build. Your very short question provides no hints what the underlying reason might be. A very rough guess is that you are building the Release configuration with an inappropriate rule set.