Problem displaying the FxCop output results via CruiseControl.NET
Hi,
I am trying to using FxCop to perform the static Code Analysis on the Manage code Assembly .I used Nant Task to run of FxCop. The FxCop Project ran successfully and produced the output in the XML format. I have configured Cruse Control.Net to take the output produced FxCop and to display it. The following is the CCNet configuration.
<tasks>
<nunit>
<path>C:\Program Files\NUnit 2.2\bin\nunit-console.exe</path>
<assemblies>
<assembly>C:\Program Files\NUnit 2.2\src\samples\vb\bin\vb-sample.dll</assembly>
</assemblies>
<outputfile>nunit-results.xml</outputfile>
</nunit>
</tasks>
<tasks>
<merge>
<files>
<file>C:\Program Files\CruiseControl.NET\server\CCNetXXX\Artifacts\fxcop-results.xml</file>
<file>C:\Program Files\CruiseControl.NET\server\CCNetXXX\Artifacts\nunit-results.xml</file>
</files>
</merge>
</tasks>
And the following is the Nant task:
<target name="runFxCop"depends="deploy">
<exec failonerror="false" program="C:\Program Files\Microsoft FxCop 1.32\fxcopcmd.exe">
<arg value="/p:C:\Automated Build\vssBuild\XXXFxCop.FxCop" />
<arg value="/o:C:\Program Files\CruiseControl.NET\server\CCNetXXX\Artifacts\fxcop-results.xml"/>
</exec>
</target>
I tried replacing FxCopReport.xsl in the CCNet server with the file in .xsl file in the FxCop folder.But it didn’t work. So can any please help me out figuring out what the problem is and how we can resolve it?
Thanks.
Salman.

