FxCop in CruiseControl.NET
2012-05-28 10:03
274 查看
原文地址: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 said
We 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
So the ccnet.config looks like this:
(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.
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 said
We 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
So the ccnet.config looks like this:
<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 在 CruiseControl.NET中的使用
- CruiseControl.Net Setup Constructions,CruiseControl.Net安装流程(NUnit+FxCop+NCover+NDoc+Fitness)
- How to use For loop in CruiseControl.net
- How to Hook Up a VS.NET 2005 Solution With CruiseControl.NET in a Few Minutes
- CruiseControl.Net 与 FxCop 集成
- CruiseControl.NET–FxCop配置
- 一个去年写的小tips,一个利用CruiseControl.NET做baseline的技巧, in english.
- Problem in ASP.NET Chart control
- CruiseControl.Net学习
- CruiseControl.NET
- Control VS.NET IDE in your Project in design-time
- 如何用CruiseControl.Net来进行持续化集成(3)
- IIS7 下面集成 CruiseControl.NET 站点
- Generage PDF in ASP.NET with third party control.
- The Calendar Control and the DayRender Event in ASP.Net
- 项目管理实践【三】每日构建【Daily Build Using CruiseControl.NET and MSBuild】
- CruiseControl.NET 三言两语
- visual studio .net ide : checking into source control now says checkIn Now (recursive)
- 使用CruiseControl.Net全面实现持续集成
- 在CruiseControl.net 中用 devenv.com 自动生成 *.msi 安装文件