title: Integrating PartCover.NET with NAnt
body: <p>I'm trying to integrate PartCover.NET with NAnt and CruiseControl.NET
  I can run PartCover.NET browser without problems, but it does not work once I try to run it in an NAnt task (in my CCNET build).</p>
  
  <p>There must be an issue with my NAnt target but I can't find it. Maybe someone had experienced the same issues in the past?.</p>
  
  <pre><code>    &lt;target name="CoverageUnitTest" description="Code coverage of unit tests"&gt;
      &lt;exec program="${PartCover.exe}"&gt;
          &lt;arg value="--target=${NUnit.console}" /&gt;
          &lt;arg value="--target-work-dir=${project.dir}\bin\${configuration}"/&gt;
          &lt;arg value="--target-args=${project}.dll" /&gt;
          &lt;arg value="--output=C:\partcover.xml" /&gt;
          &lt;arg value="--include=[*]*" /&gt;
      &lt;/exec&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>In CruiseControl, I got the following error message:
  [exec] Invalid option '--target C:\NUnit\bin\nunit-console.exe'</p>
  
  <pre><code>Build Error: NAnt.Core.BuildException
  External Program Failed: C:\PartCover\PartCover.exe (return code was -1)
  in C:\default.build line: 20 col: 4
  
     at NAnt.Core.Tasks.ExternalProgramBase.ExecuteTask()
     at NAnt.Core.Tasks.ExecTask.ExecuteTask()
     at NAnt.Core.Task.Execute()
     at NAnt.Core.Target.Execute()
     at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
     at NAnt.Core.Project.Execute()
     at NAnt.Core.Project.Run()
  </code></pre>
  
  <p>thanks !
  David</p>