StyleCop integration with Visual Studio 2015 RC

leszek picture leszek · Jul 9, 2015 · Viewed 25.7k times · Source

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 Settings] available when right clicking on project in Solution Explorer. Installing StyleCop-4.7.49.0.msi from official StyleCop site adds proper options for VS 2013 but not for 2015. Is it possible to achieve that?

Answer

ptittof57 picture ptittof57 · Sep 2, 2015

If it can help you, I have created a fork of StyleCop from CodePlex. My version works now with VS2015 and support most of new C# 6 specifications. Like version 4.7.49.0, you can right click on your project and you can find "Run StyleCop, Run StyleCop (Rescan All) or Edit settings" menus.

How to install it :

  1. Start VS2015
  2. Go to Tools and select "Extensions and Updates..." menu
  3. Select "Online" then "Visual Studio Gallery" on the left list
  4. In search box enter : "StyleCop"
  5. Select and download "Visual StyleCop"
  6. Then right click on your project and run StyleCop

If you have any issue you can report it on GitHub, project name : Visual StyleCop.