Visual Studio: temporarily disable StyleCop

前端 未结 5 1903
忘了有多久
忘了有多久 2021-02-19 08:27

Can you disable styleCop in VS?

Scenario:

  1. Press \"Disable StyleCop\" button
  2. Run/debug some test code
  3. The button automatically, enable Sty
5条回答
  •  天命终不由人
    2021-02-19 09:17

    For a way to do this through the VS2013 UI, in StyleCop 4.7.49 (I'm not sure what the minimum versions for this are), you can:

    1. right-click on a project in Project Explorer
    2. select "StyleCop Settings"
    3. on the "Rules" tab of the dialog that opens, uncheck the "C#" root of the Enabled rules tree

提交回复
热议问题