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?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
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.