Using FxCop 1.36 with CruiseControl.Net

I’ve been trying to use the lastest FxCop release with CruiseControl.Net but I couldn’t get the output to work on the CCNET page with the FxCopReport.xsl file that comes with FxCop 1.36 Beta 2. The xsl file seems to get nearly all of the build report and writes it to the screen, which makes it unusable.

I tried the xsl file that comes with CCNET and it got a little better. The first assembly would show up in the list, but all the rules kept getting indented way too far, and none of the other assemblies showed up.

The CCNET xsl seemed to be closer to being correct so I decided to use that as a starting point and began mucking with the xsl to see if I could get the transform to work correctly.

The fix turned out to be as easy as commenting out the section titled “Rule Details”. That was hiding my other assemblies as well as messing up the indentation.

You can download the xsl file that I’m using if you’re having the same issue: FxCopReport.xsl.zip

UPDATE: Turns out the change I made was dumb and removed all the good details about the rules, I did a little more work and got that back in there correctly.

7 Comments so far »

  1. Uche Akotaobi said,

    Wrote on December 3, 2007 @ 9:50 pm

    I was having precisely the same issue you described with FxCop 1.36 and CruiseControl.NET 1.3.0.2918: I could successfully generate the FxCop report with FxCopCmd, but the report report page on the WebDashBoard refused to show anything except the first file of the first assembly.

    You fix worked for me after copying your modified FxCopReport.xsl file into my CCNET’s webdashboard/xsl and restarting IIS. Thank you so much!

    You ought to send the patch back to the upstream CCNET developers so no one else encounters this problem.

  2. Ben said,

    Wrote on December 3, 2007 @ 9:55 pm

    Uche, I’m glad to hear that it worked for you too.

  3. george said,

    Wrote on January 9, 2008 @ 3:14 pm

    Thanks for this fix, worked great.

  4. James G said,

    Wrote on February 22, 2008 @ 4:54 am

    Awesome dude, was looking through useless guide after useless guide, none of the top google listed results have working guides for the latest versions!

    Nice one.

  5. harish said,

    Wrote on March 5, 2008 @ 6:58 pm

    That was very helpful , saved tones of time mucking around the default fxcopreport xsl which comes with ccnet.

    thanks =)

  6. Daniel Hommel said,

    Wrote on March 9, 2008 @ 4:04 pm

    Ben,

    i’m a contributor to CCNET and i’d like to recommend your modified XSL file for inclusion in the 1.4 release.

    If you are interested please drop me a line.

    regards,

    Daniel

  7. Vishal Patil said,

    Wrote on July 11, 2008 @ 10:04 am

    Hi Ben,
    This xsl helped a lot to me. All the other contributions to FxCopReport so far for all the previous and current version of FxCop were not working for me. For some xsl the webdashboard of ccnet showed me the build summary and some showed me only Expan and Collapse buttons. But the xsl by you worked very well. Thanks a lot.

    Thanks onec again.
    Vishal Patil 91-9373141426, Pune, India.

Comment RSS · TrackBack URI

Leave a Comment

Name: (Required)

E-mail: (Required)

Website:

Enter my name (ben) in this box, so I know you're a human.

Comment: