MS StyleCop 和 CruiseControl.NET
我想知道是否有人尝试将 StyleCop 集成到 CruiseControl.NET 中。
有人知道吗? 或者至少有人创建并发布了一个 xsl 文件来将 StyleCop 结果显示到 CCNet 的仪表板上?
编辑:我发现这个项目,它为StyleCop提供cmd接口,以xml格式生成结果并且还提供了 xsl 用于将此 xml 转换为 html。 现在只要把这些东西和CCNet放在一起就可以了。
I wonder if anybody tried to integrate StyleCop into CruiseControl.NET.
Does anybody know something about it? or at least did anybody create and publish an xsl file for displaying StyleCop result onto CCNet's dashboard?
EDIT: I found this project, it provies cmd interface for StyleCop, produces result in xml format and also provides xsl for transforming this xml into html. Now just put these things together with CCNet.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
2009 年 10 月 5 日,Yves Tremblay 添加了一个很好的 StyleCop 集成 CCNET 社区。 我们从 StyleCopCmd 切换到这个解决方案,并且并不后悔。
On October 5th, 2009 Yves Tremblay added a nice StyleCop integration to CCNET Community. We switched from StyleCopCmd to this solution and didn't regret.
我一直在使用 StyleCop 作为 TeamCity 构建环境的一部分。
(TeamCity 与 CruiseControl.NET 类似,但具有不错的文档,并且几乎零需要摆弄 Xml 配置文件。)
我为 StyleCop 编写了自己的前端来完成这项工作。
请参阅http://www.nichesoftware.co.nz/content/stylecop-cmd
I've been using StyleCop as a part of a TeamCity build environment.
(TeamCity is like CruiseControl.NET, but with decent documentation and an almost zero need to monkey around with Xml configuration files.)
I wrote my own front end for StyleCop to make this work.
See http://www.nichesoftware.co.nz/content/stylecop-cmd
MSBuild 扩展包
支持 StyleCop...
MSBuild Extension Pack
Supports StyleCop....
也许这可以帮助你:http://stylecopcmd.wiki.sourceforge.net/
Maybe this could help you: http://stylecopcmd.wiki.sourceforge.net/
您不需要为您的 CI 产品做任何特定的事情。
StyleCop 集成得非常好,开箱即用:
您只需执行一次两件事:
项目文件夹(并进入源代码
控制!)
这使得 StyleCop 在任何机器上的每次编译上运行,无论是在 Visual Studio 中完成还是直接使用 MSBuild 完成,而无需安装任何东西。
任何违反 StyleCop 规则的行为都会导致编译错误,因此如果您的代码不遵守 StyleCop 规则,则完整的构建将会失败。
以下是如何设置的说明:
http://blogs.msdn .com/b/sourceanalysis/archive/2008/05/24/source-analysis-msbuild-integration.aspx
(尤其是最后一段,“团队发展”)
You don't need to do anyting specific for your CI product.
StyleCop integrates very well out-of-the-box:
You only need to do two things once:
project folder (and into source
control!)
This makes StyleCop run on EVERY compile, no matter if done in Visual Studio or directly with MSBuild, on any machine, without having to install anything.
Any StyleCop rule violation will cause a compilation error, so the complete build will fail if your code doesn't adhere to StyleCop's rules.
Here's an explanation how to set this up:
http://blogs.msdn.com/b/sourceanalysis/archive/2008/05/24/source-analysis-msbuild-integration.aspx
(especially the last paragraph, "Team Development")