Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use StyleCop from command line?

Tags:

c#

stylecop

Is there a way to use StyleCop 4.5 from the command line on an individual source file, like stylecop HelloWorld.cs?

like image 282
Steven Avatar asked Aug 03 '11 19:08

Steven


2 Answers

You can't. It's not a feature of stylecop, it only integrates with VS2008/2010 and MsBuild

There is this project at sourceforge that may do what you're looking for. DISCLAIMER: I have not tried it.

like image 173
Christopher Currens Avatar answered Sep 23 '22 13:09

Christopher Currens


To revive an old thread...

https://github.com/Nylle/StyleCop.Console seems to fit the job nicely.

like image 31
James Bradt Avatar answered Sep 20 '22 13:09

James Bradt