How to suppress all warnings using MSBuild

Viewed 27929
4 Answers

The best way is to fix the issues that are causing the warnings.

If you must ignore the warnings (e.g. you have inherited a project with so many that you can't see the wood for the trees), you could try changing the WarningLevel property, http://msdn.microsoft.com/en-us/library/13b90fz7.aspx

In Jenkins

  • Happened upon this Googling "how to suppress MSBuild warnings in Jenkins"
  • So much noise like the following in our console output, couldn't find the meat
    Missing XML comment for publicly visible type or member
    
  • Inherited Jenkins on a Windows server

  1. Manage Jenkins > Global Tool Configuration > MSBuild
  2. Add /clp:ErrorsOnly to the Default parameters enter image description here
Related