Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to properly install stylecop?

Well i downloaded the newest version, then installed, checked to instal entire files on local drive. I restarted VS2010 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.

Look: I click inside code, white field and i see only this: enter image description here

like image 991
deadfish Avatar asked May 05 '11 08:05

deadfish


People also ask

How do I enable StyleCop in VS 2017?

You mean ... Start VS2017. Go to Tools and select "Extensions and Updates..." menu. Select "Online" then "Visual Studio Marketplace" on the left list. In search box enter : "StyleCop" Select and download "Visual StyleCop" Then right click on your project and run StyleCop.


2 Answers

1) Download StyleCop from here

2) Close all Visual Studio instances

3) Install StyleCop

4) Open Visual Studio, Right click inside code file and you could see Run StyleCop Option

like image 130
Mahesh Velaga Avatar answered Oct 12 '22 14:10

Mahesh Velaga


Are you using one of the Visual Studio Express products? If so, you will not see UI integration of StyleCop since the VS Express edition does not support integration of add-ins and packages like StyleCop.

If you are using Express, you could still run StyleCop, but this will require using either MSBuild integration or a pre- or post- build event.

like image 41
Nicole Calinoiu Avatar answered Oct 12 '22 15:10

Nicole Calinoiu