Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010 Warning numbers. Where do I find them?

I suppress a few warnings, 1591 is the XML comments warning. It's not that I don't use the comments, there are some false positives.

Now to find the fact that XML comments warning is 1591 took a whole load of googling. Is there a list somewhere? Or a way to display the error number in Visual Studio itself?

Thanks

like image 451
Ian Avatar asked Jul 05 '11 10:07

Ian


People also ask

How do I see 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?

Right-click on the corresponding entry line and select Show Error Help from the context menu, or click on the hyperlinked error code value in the Code column of the Error List.

Which number is used to suppress the warning in a code?

Use a #pragma warning (C#) or Disable (Visual Basic) directive to suppress the warning for only a specific line of code.


2 Answers

The Error List hides the error and warning numbers, but if you open the Output panel in Visual Studio (menu : Debug > Windows > Output) and set it to show output from Build, you can find the warning number somewhere in the wall of text.

VS2005 Build output

You could also try building the project from the command line (using msbuild) which will output and highlight all error and warning numbers.

msbuild output

like image 191
Ishmaeel Avatar answered Sep 21 '22 07:09

Ishmaeel


You can find a whole list of them here:

Compiler and Warning messages for C/C++

Compiler and Warning messages for C#

like image 29
Neil Knight Avatar answered Sep 21 '22 07:09

Neil Knight