How to use StyleCop from the command line?

Is there a way to use StyleCop 4.5 from the command line in a separate source file, for example stylecop HelloWorld.cs ?

+6
source share
5 answers

You can not. This is not a feature of the style; it integrates only with VS2008 / 2010 and MsBuild.

There is this project in sourceforge that can do what you are looking for. DISCLAIMER: I have not tried.

+5
source
+3
source

To revive the old stream ...

https://github.com/Nylle/StyleCop.Console seems to work well.

+3
source

There is this project available on SourceForge.net which you can use from the command line.

+2
source

There's also StyleCopCmd , a command line shell, and an NAnt task for StyleCop.

+1
source

Source: https://habr.com/ru/post/894217/


All Articles