FxCop in CruiseControl.NET
来源:互联网 发布:藏头诗在线生成器软件 编辑:程序博客网 时间:2024/05/01 02:46
原文地址:http://blog.webgear.co.nz/archive/2008/07/25/fxcop-in-cruisecontrol.net.aspx
I have finally integrated FxCop into my automated build process. Now i can see FxCop summary and detailed reports on theCruiseControls.NET dashboard.
Initially I was misguided somewhat by CruiseControl.NET's documentation when it saidWe don't currently support running FxCop directly from CruiseControl.NET, but we plan on enabling this in a later release.
It seemed that the only way FxCop could be used with CC.NET is via NAnt.However it turned out to be very easy to do it just viaExecutable Task. Here's what i did:
- Added FxCop project file to my solution (so i could select which assemblies to analyze and choose the rules)
- Added an exec task to project's tasks node in ccnet.config (after all the builds and unit tests are done)
- Added a File Merge Task to publishers node so that FxCop results are picked up by CC.NET
<cruisecontrol> <project name="project"> ... <tasks> ... <exec> <executable>C:\Program Files\Microsoft FxCop 1.35\FxCopCmd.exe</executable> <baseDirectory>C:\AllProjects\MyProject\</baseDirectory> <buildArgs>/p:"MyProject.sln.FxCop" /out:"(artifacts)\FxCop-results.xml" /gac</buildArgs> <buildTimeoutSeconds>300</buildTimeoutSeconds> </exec> </tasks> <publishers> <merge> <files> <file>(artifacts)\FxCop-results.xml</file> </files> </merge> ... </publishers> </project></cruisecontrol>(Note i have added some linebreaks in there so it fits into the page).
I'm also using different stylesheets to present FxCop results, which i think are nicer.
- FxCop in CruiseControl.NET
- CruiseControl.Net 与 FxCop 集成
- 敏捷开发,持续集成 fxcop 在 CruiseControl.NET中的使用
- CruiseControl.Net Setup Constructions,CruiseControl.Net安装流程(NUnit+FxCop+NCover+NDoc+Fitness)
- CruiseControl.net~ VS~ Hudson
- CruiseControl.NET以及使用
- cruiseControl.net 配置总结
- How to Hook Up a VS.NET 2005 Solution With CruiseControl.NET in a Few Minutes
- FxCop
- FxCop
- FxCop
- 一个去年写的小tips,一个利用CruiseControl.NET做baseline的技巧, in english.
- SVN 配置 之四 CruiseControl.NET & CruiseControl.NET CCTray
- How to change the timeout in FXCop
- (ZT)CruiseControl.NET配置总结
- cruisecontrol.net集成环境参考
- CruiseControl.Net 与 Gendarme 集成
- CruiseControl.Net 与DuplicateFinder 集成
- android android:taskAffinity 详解
- 重新认识oo'World
- ARP, Address Resolution Protocol
- Samsung手机验证
- ActivityGroup切换Activity时非全屏
- FxCop in CruiseControl.NET
- 驱动程序中几个常见例程(读书笔记)
- filezilla 配置文件 在哪里?原来配置文件位置修改如此简单,绿色实用的方法
- Git使用
- Android的布景设计(theme)
- C#中enum简介
- 线程同步:Mutex和Condition
- Comparing Struts 1 and 2
- Android源码里packages里面的结构