How to properly install StyleCop for Visual Studio 2017 Community?

13.2k views Asked by At

Well i downloaded the newest version, then installed, checked to instal entire files on local drive. I restarted Visual Studio 2017 Community and rerun it. Unfortunatelly i can't find in menu > tools anything with should be connected with stylecop ( as in tutorial "how to use stylecop"). I am using x64 Windows7. I really really don't know how to to use it.

2

There are 2 answers

1
user3191912 On

Go to extensions and updates and search for stylecop in the online area.

Choose the one by Chris Dahlberg.

Close VS and it will install.

open your project up and make sure you have a settings.stylecop file in there.

right click on the project in the solution explorer and you will see a run stylecop option

3
Andy Borst On

After reading a comment from the extension creator, it appears that future development is targeted for the SytleCopAnalyzers NuGet package. Using VS 2017, this was easy to get running. Instructions here -> https://github.com/DotNetAnalyzers/StyleCopAnalyzers.