StyleCop integration with Visual Studio 2015 RC

前端 未结 3 1815
萌比男神i
萌比男神i 2021-01-31 09:15

I want to integrate my instance of VS 2015 RC with StyleCop in the way that I have StyleCop menu options [Run StyleCop, Run StyleCop (Rescan All), StyleCop

3条回答
  •  余生分开走
    2021-01-31 10:07

    Installed VS2015 Community release recently. Since StyleCop project does not list 2015 as supported I digged further.

    And found solution. It is StyleCopAnalyzers that can be installed via nuget (make sure that you click "include prerelease" checkbox) on per project basis. This is interesting solution and I like how it looks.

    Downside is that it is not possible to just use old Settings.StyleCop and it took me some searching how to configure rules. And I found this blog post. Basically you expand your references list. Then right click on the Analyzers create ruleset and you have .ruleset file in the project.

提交回复
热议问题