title: how can i suppress all compiler and code analysis warnings from msbuild at the command line?
body: <p><a href="https://stackoverflow.com/questions/2050826/how-to-suppress-all-warnings-using-msbuild">This has been asked</a>, but wasn't answered. The answer  (use <code>/warn:1</code>) doesn't work for msbuild.exe, only csc.exe. Perhaps I'm missing something between csc and msbuild? </p>
  
  <p>I'd like to suppress all compiler warnings and code analysis warnings (e.g. <em>"The variable 'variableNameHere' is assigned but its value ..."</em> or <em>Code Analysis Warning : CA1805 : Microsoft.Performance : ...</em>) when I'm using command line msbuild. I don't want to alter the solution file. There are several hundred warning messages in the very large solution that I'm building -- fixing them is far out of scope for my project. </p>
  
  <p>I tried <code>/v:quiet</code> but that didn't work. </p>
  
  <p>Is there any way to do this via the command line? </p>
  
  <p>Update: this: </p>
  
  <p><code>C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild.exe C:\Dev\ReallyBigSolution.sln /p:NoWarn=true  /p:NoWarn=CA1031</code></p>
  
  <p>Absolutely <strong>doesn't work</strong>. I still get hundreds of warnings, including the one I specifically blocked (CA1031). </p>
  
  <p>Using <code>/p:RunCodeAnalysis=Never</code> or <code>/p:RunCodeAnalysis=false</code> apparently doesn't suppress code analysis warnings or errors.</p>