有谁知道一种查看VB.NET项目的所有编译器警告的方式? [英] Does anyone know of a way to view all compiler warnings for a VB.NET project?

查看:88
本文介绍了有谁知道一种查看VB.NET项目的所有编译器警告的方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

VB.NET具有相当烦人的限制,该限制使报告的编译器警告上限为100.

VB.NET has this rather annoying limitation which caps compiler warnings reported at 100.

vbc : warning BC42206: Maximum number of warnings has been exceeded.

当试图加大遵从VB.NET最佳实践(例如启用Option Strict)所需的工作量时,这使事情变得很沮丧.

This makes things rather frustrating when trying to size up the amount of effort that would be required to comply with VB.NET best practices, such as enabling Option Strict.

有没有办法消除,调整或通过其他方式(例如通过第三方代码分析工具)收集警告的限制?

Is there any way where this limitation could either be removed, adjusted, or could warnings be gathered by some other means (such as through a 3rd party code-analysis tool)?

推荐答案

从VB11开始,在VS2012中,从命令行调用vbc不再具有最大错误限制.

As of VB11, in VS2012, vbc no longer has a maximum error limit when called from the command line.

现在可能有一个更好的链接,但是

There's probably a better link for this now, but this will do until I find one.

更新:新链接

这篇关于有谁知道一种查看VB.NET项目的所有编译器警告的方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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