Where is the Stylecop configuration file?

后端 未结 3 1722
甜味超标
甜味超标 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 installed Stylecop via NuGet (the StyleCop.MSBuild package), then you will not have the folder detailed in the other answers.

    You will find the file in your project folder here:
    packages\StyleCop.MSBuild.{version}\tools\Settings.StyleCop

    You should copy this file to the root of your project.

    If you would rather not manually edit the file, there is also a nice gui tool called StyleCopSettingsEditor in the tools folder, which you can just drag your settings file onto.

提交回复
热议问题