Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to show ALL the compiler warnings in Visual Studio 2010?

I'm cleaning up a project to get rid of all the warnings, but I can only see the first 100 or so in the Error List pane.

This is a problem because we're using Team Server for source control and all the warnings shown are in files that are currently checked out (and therefore I can't modify without making someone else possibly do a lot of work when they check in).

I'd like to be able to see the full list so I can continue my cleaning while others are working.


In case it makes a difference,

  • The project in question is a VB.NET web application (using the application model). It doesn't seem that I can compile individual pages.
  • Environment is VS2010 Premium; I can get Ultimate on my machine if necessary.
like image 442
Jon Seigel Avatar asked Aug 18 '10 16:08

Jon Seigel


People also ask

How do I view warnings in Visual Studio?

To display the Error List, choose View > Error List, or press Ctrl+\+E.

How do I show error codes in Visual Studio?

You can click on the summary or press Ctrl+Shift+M to display the PROBLEMS panel with a list of all current errors. If you open a file that has errors or warnings, they will be rendered inline with the text and in the overview ruler.

How do I enable or disable compiler warnings in Visual Studio?

Turn off the warning for a project in Visual StudioSelect the Configuration Properties > C/C++ > Advanced property page. Edit the Disable Specific Warnings property to add 4996 . Choose OK to apply your changes.


1 Answers

The full list of warnings should be visible in the output window. After building open the output window, switch it to the build output and you should have access to all errors emitted by the compiler.

Note: The compiler itself still has a hard limit on the number of errors it will report for a given project (true for both VB and C#). This cannot be overridden in Visual Studio or the command line.

like image 195
JaredPar Avatar answered Sep 30 '22 18:09

JaredPar