Visual Studio 2010 警告编号.我在哪里可以找到它们? [英] Visual Studio 2010 Warning numbers. Where do I find them?

查看:35
本文介绍了Visual Studio 2010 警告编号.我在哪里可以找到它们?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我禁止一些警告,1591 是 XML 注释警告.不是我不使用评论,有一些误报.

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.

现在发现 XML 注释警告为 1591 的事实需要大量的谷歌搜索.某处有清单吗?或者在 Visual Studio 本身中显示错误号的方法?

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?

谢谢

推荐答案

老实说,使用搜索词1591"和visual studio",我用谷歌搜索不到 5 秒就找到了.最重要的是钱:http://www.google.com/搜索?q=1591+视觉+工作室我只想说,这就是我通常找到它们的方式.

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.

但它们都记录在您使用上述搜索结果登陆的页面上:C# 编译器错误

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

请注意,不同语言的警告编号通常不同.特别是,C#、VB.NET 和 C/C++ 都使用不同的编译器,因此都会发出不同的错误代码.

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.

另外,值得注意的是,在 VS 2008 及更高版本上,您可以右键单击错误列表"中的警告以显示与该警告相关的文档.这会告诉您错误级别、错误编号以及您需要的任何其他信息.

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.

这篇关于Visual Studio 2010 警告编号.我在哪里可以找到它们?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆