This project is read-only.

Stylecop rules output file.

Aug 25, 2010 at 9:08 PM

I am using stylecop within my CI environment and have the following setup in my nant script.  In the MSBuild output in the command line window I can see that it finds all of the violations, although they do not appear to get written to the stylecop-result.xml file as defined in the below nant xml snippet.  What appears to happen is that for each assembly compiled, the style cop output file gets overridden, rather than appended to.  I proved this by stopping certain assemblies from being built as part of the AutomatedBuild configuration and then the file does get populated but again only with the violations caused by the last assembly compiled.

What is the solution to this problem?


<msbuild project="src\Master.sln">
      <property name="Configuration" value="AutomatedDebug" />
      <property name="CustomAfterMicrosoftCommonTargets" value="${directory::get-current-directory()}\tools\stylecop\Microsoft.StyleCop.Targets" />
      <property name="StyleCopOutputFile" value="${directory::get-current-directory()}\${buildartifacts.dir}\stylecop-result.xml" />

Sep 16, 2010 at 1:21 PM


How can we integrate StyleCop to CCNET environment.