Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List of all Visual Studio compiler errors and warnings, with their numbers

I want to disable a specific kind of warning but I'm having trouble finding its warning number so that I can blacklist it to the depths of hell in the project settings. This particular warning isn't showing up in any console output (only in the Error List UI), so it isn't revealing its number.

Does anyone have a list of all compiler errors and warnings along with their numbers?

Regardless of whether I just haven't looked well enough for either the specific warning number or a list, my faith in humanity suffered some damage when I couldn't find such a list on the internet. So I think an exhaustive list would be useful.

like image 483
amr Avatar asked Oct 07 '14 06:10

amr


People also ask

How do I see compiler warnings in Visual Studio?

To get help on a particular diagnostic message in Visual Studio, select it in the Output window and press the F1 key. Visual Studio opens the documentation page for that error, if one exists. You can also use the search tool at the top of the page to find articles about specific errors or warnings.

How do I find the error list in Visual Studio?

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

What are compiler warnings?

Compiler warnings are messages produced by a compiler regarding program code fragments to be considered by the developer, as they may contain errors. Unlike compilation errors, warnings don't interrupt the compilation process.


3 Answers

The list on MSDN is incomplete. I made a small program to generate the full list from the Roslyn source code.

like image 68
Thomas Levesque Avatar answered Nov 08 '22 23:11

Thomas Levesque


If you want to generate a single table of all the C# error codes and their respective message (e.g. for reference purposes), you can use this useful script, which parses the MSDN list and compiles a HTML table (could use some styling though).

like image 44
Xcalibur Avatar answered Nov 08 '22 23:11

Xcalibur


You'll find a list of error codes for VS 2013 under MSDN.

If you need a list for a different version of Visual Studio, there is a link "Other Versions" at the top of the page.

Note that these are organized by number, so you'll still have to search through them to find the specific error you're looking for.

like image 36
Kjartan Avatar answered Nov 08 '22 22:11

Kjartan