的Visual Studio 2013编译器警告不显示 [英] Visual Studio 2013 Compiler Warnings not Showing

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

问题描述

我安装了Visual Studio 2013,昨晚,我注意到,它没有显示在所有任何警告。具体而言,我希望它强调未使用的局部变量,私有方法等。有没有在Visual Studio中的某处设置,我需要启用?

I installed Visual Studio 2013 last night and I'm noticing that it's not showing any warnings at all. Specifically, I want it to highlight unused local variables, private methods and the like. Is there a setting somewhere in Visual Studio that I need to enable?

推荐答案

我跑进巧合的解决方案。




- 右键点击您的项目中选择属性。


- 转到左边的代码分析选项卡。


- 更改规则集的Microsft所有规则。




我有它在默认情况下,它甚至没有显示警告像未使用的局部变量直线前进的东西设为的Microsft管理的推荐规则。我选择了微软所有规则进行更细化的设置警告。

I ran into the solution by coincidence.

- Right click on your project a select "Properties".
- Go to the "Code Analysis" tab on the left.
- Change the Rule Set to "Microsft All Rules".

I had it set to "Microsft Managed Recommended Rules" by default, which did not even show warning for straight forward things like unused local variables. I selected "Microsoft All Rules" for a more granular set of warnings.

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

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