Visual Studio 2013 Compiler Warnings not Showing

后端 未结 1 2076
旧巷少年郎
旧巷少年郎 2021-01-15 08:49

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

相关标签:
1条回答
  • 2021-01-15 09:31

    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.

    0 讨论(0)
提交回复
热议问题