开发者

How to use StyleCop from command line?

开发者 https://www.devze.com 2023-03-25 12:18 出处:网络
Is there a way to use StyleCop 4.5 from the command line on an 开发者_如何学运维individual source file, like stylecop HelloWorld.cs?To revive an old thread...

Is there a way to use StyleCop 4.5 from the command line on an 开发者_如何学运维individual source file, like stylecop HelloWorld.cs?


To revive an old thread...

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


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.


Here is also an article descibing how to create a simple C# console app running StyleCop over specified file.

Feel free to create your own runner which will be able to process results in any way you want.


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


There's also StyleCopCmd, a command-line wrapper and NAnt task for StyleCop.

0

精彩评论

暂无评论...
验证码 换一张
取 消