How to use StyleCop from command line?

Steven picture Steven · Aug 3, 2011 · Viewed 8.4k times · Source

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

Answer

Christopher Currens picture Christopher Currens · Aug 3, 2011

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.