I'm having problem seeing the fxcop report in CruiseControl dashboar.
When I'm clicking on the 'FxCop Report'
link in the left pane of the Dashboard, its just displaying a blank
page. I'm using FxCop 1.36 with CC 1.2.1.7

Here's how I'm setting up FxCop-CC integration

1. My NAnt build file is generating an output file named fxcop.xml

2. I'm using a custoom stylesheet FxCopReport.xsl that I found in this
website -

http://benreichelt.net/blog/2007/11/05/using-fxcop-136-with-cruisecontrolnet/

3. I put the xsl file in C:\Program Files\CruiseControl.NET
\webdashboard\xsl

4. Added the path to the output fxcop.xml in the 'merge' bock of
ccnet.config in the following way
   and restarted IIS.

      <merge>
        <files>
          <file>C:\Projects\Build\Logs\MCI\Current
\CoverageSummary.xml</file>
          <file>C:\Projects\Build\Logs\MCI\Current
\UnitTestResults*.trx</file>
          <file>c:\Projects\Build\MCI\Reports\fxCop.xml</file>
        </files>
      </merge>

5. added FxCopReport.xsl to dashboard.config

   <buildReportBuildPlugin>
        <xslFileNames>
                <xslFile>xsl\header.xsl</xslFile>
                <xslFile>xsl\modifications.xsl</xslFile>
                <xslFile>xsl\compile.xsl</xslFile>
                <xslFile>xsl\unittests.xsl</xslFile>
                <xslFile>xsl\MsTestSummary.xsl</xslFile>
                <xslFile>xsl\FxCopReport.xsl</xslFile>
                <xslFile>xsl\NCoverSummary.xsl</xslFile>
                <xslFile>xsl\SimianSummary.xsl</xslFile>
                <xslFile>xsl\fitnesse.xsl</xslFile>
        </xslFileNames>
  </buildReportBuildPlugin>

6. added FxCopReport.xsl to ccservice.exe.config although I'm not
using emailpublisher

   <xslFiles>
                <file name="xsl\header.xsl" />
                <file name="xsl\compile.xsl" />
                <file name="xsl\unittests.xsl" />
                <file name="xsl\fit.xsl" />
                <file name="xsl\modifications.xsl" />
                <file name="xsl\FxCopReport.xsl" />
  </xslFiles>

One thing I'm seeing in the NAnt build log is following

[exec] External Program Failed: fxcopcmd.exe (return code was 4)


This error could be due to a cutom rule that decided not to add. But
the standard FxCop rules were being applied on my targets and the
output was being generated. I was under the impression that the
stylesheet would transform whatever output xml is thrown at it.

ccnet log is saying that its merging the xml

2008-12-16 17:57:39,347 [MCI-Current-R1.0.0:INFO] Merging file: c:
\Projects\Build\MCI\Reports\fxCop.xml

after all this, still not seeing the coveted page in CC.


Any help would be very much appreciated

Reply via email to