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.
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.
To display the Error List, choose View > Error List, or press Ctrl+\+E.
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.
The list on MSDN is incomplete. I made a small program to generate the full list from the Roslyn source code.
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).
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With