Ian
Ian

Reputation: 4909

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

Upvotes: 10

Views: 8480

Answers (4)

Evan B
Evan B

Reputation: 101

I stumbled on this thread while trying to sort out how to find these in VS2015 with Beckhoff TwinCAT and found the Beckhoff-specific ones under Project->Properties, in the Compiler Warnings tab (as below in 1).

screencap of TwinCAT project properties' compiler warning list

Upvotes: 0

Ishmaeel
Ishmaeel

Reputation: 14383

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

Upvotes: 32

Cody Gray
Cody Gray

Reputation: 244682

It honestly took me less than 5 seconds of Googling to find that, using the search terms "1591" and "visual studio". The top hit is right on the money: http://www.google.com/search?q=1591+visual+studio So suffice it to say, this is how I usually find them.

But they're all documented on the page you land at with the above search results: C# Compiler Errors

Do note that the warning numbers are often different for different languages. In particular, C#, VB.NET, and C/C++ all use different compilers and therefore all emit different error codes.

Also, it's worth noting that on VS 2008 and later, you can right-click over a warning in the "Error List" to display documentation related to that warning. This tells you the error level, the error number, and whatever other information you need.

Upvotes: 1

Neil Knight
Neil Knight

Reputation: 48537

You can find a whole list of them here:

Compiler and Warning messages for C/C++

Compiler and Warning messages for C#

Upvotes: 7

Related Questions