How to suppress a StyleCop warning?

后端 未结 12 1388
心在旅途
心在旅途 2020-11-27 18:23

I\'m using StyleCop and want to suppress some warning which does not suit my style. I prefer to have solution for

1) in-line code suppressing
2) global setting

12条回答
  •  感动是毒
    2020-11-27 19:02

    1. Go to Solution Explorer
    2. Go to your project
    3. Expand references
    4. Expand Analyzers
    5. Expand StyleCop.Analyzers
    6. Right click on a particular rule which you want to disable at a global (project) level
    7. Set Rule Set severity -> Select None

提交回复
热议问题