有没有办法在Visual Studio 2010中显示所有编译器警告? [英] Is there a way to show ALL the compiler warnings in Visual Studio 2010?

查看:181
本文介绍了有没有办法在Visual Studio 2010中显示所有编译器警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在清理项目以消除所有警告,但在错误列表窗格中只能看到前100个左右。

I'm cleaning up a project to get rid of all the warnings, but I can only see the first 100 or so in the Error List pane.

此这是一个问题,因为我们正在使用Team Server进行源代码管理,并且显示的所有警告都在当前已检出的文件中(因此,如果不让他人可能对 lot 进行更改,我将无法进行修改

This is a problem because we're using Team Server for source control and all the warnings shown are in files that are currently checked out (and therefore I can't modify without making someone else possibly do a lot of work when they check in).

我希望能够看到完整列表,以便在其他人工作时继续清洁。

I'd like to be able to see the full list so I can continue my cleaning while others are working.

如果有所作为,


  • 有问题的项目是VB.NET Web应用程序(使用应用程序模型)。似乎我无法编译单个页面。

  • 环境是VS2010 Premium;

推荐答案

警告的完整列表应为在输出窗口中可见。构建完成后,打开输出窗口,将其切换到构建输出,您应该可以访问编译器发出的所有错误。

The full list of warnings should be visible in the output window. After building open the output window, switch it to the build output and you should have access to all errors emitted by the compiler.

注意:编译器本身对于要报告给定项目的错误数量仍然有严格的限制(对于VB和C#均为true)。在Visual Studio或命令行中不能覆盖此设置。

Note: The compiler itself still has a hard limit on the number of errors it will report for a given project (true for both VB and C#). This cannot be overridden in Visual Studio or the command line.

这篇关于有没有办法在Visual Studio 2010中显示所有编译器警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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