Visual Studio: temporarily disable StyleCop

前端 未结 5 1931
忘了有多久
忘了有多久 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:11

    You can disbale StyleCop for the entire solution by placing a Settings.StyleCop in the root of your solution folder, with the following contents:

    
      
        False
      
    
    

    You'll need to restart Visual Studio after doing so.

提交回复
热议问题