How to disable warnings in only one project?

Vitor Canova picture Vitor Canova · Apr 2, 2012 · Viewed 9.8k times · Source

I have a legacy project in my solution without comments and many warnings. I want to not see warnings about this specific project but I want to see warnings of the other projects in the same solution.

Is it possible?

edit: I mean "all warnings" of specific project.

Answer

Mike Parkhill picture Mike Parkhill · Apr 2, 2012
  1. In Visual Studio open the project's Properties tab
  2. Go to the "Build" tab
  3. Set the "Warning Level" to 0

For details on the different warning levels see:

C# Compiler Options > /warn (Specify Warning Level)