Where is the Stylecop configuration file?

后端 未结 3 1013
花落未央
花落未央 2021-02-11 20:38

I\'ve installed Stylecop via NuGet. I wish to disable some rules, and I know this can be done via a configuration file from what I\'ve read. However, I can\'t find the file anyw

3条回答
  •  梦谈多话
    2021-02-11 21:27

    If you copy the Settings.StyleCop file to the root of the solution, then it will be inherited by all projects. This means it can be kept in Source Control and accessed by any Continuous Integration server you are using.

    If you reference and alter the file in C:\Program Files (x86)\StyleCop {{version}}\Settings.StyleCop this needs to be kept inline on each developer's PC. where as copying it to the root of the solution

提交回复
热议问题