title: How to resolve "Only one project can be specified" error from <msbuild> task in CruiseControl.NET
body: <p>I'm trying to use the  task in CruiseControl.NET version 1.3.0.2918 with a rather straight forward :</p>
  
  <pre><code>  &lt;project name="AppBuilder 1.0 (Debug)"&gt;
      &lt;workingDirectory&gt;c:\depot\AppBuilder\1.0\&lt;/workingDirectory&gt;
      &lt;triggers/&gt;
      &lt;tasks&gt;
        &lt;msbuild/&gt;
      &lt;/tasks&gt;
     &lt;/project&gt;
  </code></pre>
  
  <p>However, when the project is run it fails with this information in the build log:</p>
  
  <blockquote>
    <p>MSBUILD : error MSB1008: Only one
    project can be specified. Switch: 1.0</p>
    
    <p>For switch syntax, type "MSBuild
    /help"</p>
  </blockquote>
  
  <p>When I look at the ccnet.log file I find this:</p>
  
  <blockquote>
    <p>Starting process [C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe] in working
    directory [c:\depot\AppBuilder\1.0] with arguments [/nologo "/p:CCNetArtifactDirectory=C:\Program Files\CruiseControl.NET\server\AppBuilder 1.0 (Debug)\Artifacts;CCNetBuildCondition=ForceBuild;CCNetBuildDate=2009-01-22;CCNetBuildTime=09:25:55;CCNetIntegrationStatus=Unknown;CCNetLabel=3;
    CCNetLastIntegrationStatus=Failure;CCNetNumericLabel=3;CCNetProject=AppBuilder 1.0 (Debug);CCNetProjectUrl=<a href="http://CISERVER01/ccnet;CCNetRequestSource=jstong" rel="noreferrer">http://CISERVER01/ccnet;CCNetRequestSource=jstong</a>;
    CCNetWorkingDirectory=c:\depot\AppBuilder\1.0\" "/l:ThoughtWorks.CruiseControl.MsBuild.XmlLogger,ThoughtWorks.CruiseControl.MsBuild.dll;C:\Program Files\CruiseControl.NET\server\AppBuilder 1.0 (Debug)\Artifacts\msbuild-results.xml"]</p>
  </blockquote>
  
  <p>from which I infer that msbuild was run in the correct working directory and that the command line passed to it was: </p>
  
  <blockquote>
    <p>/nologo "/p:CCNetArtifactDirectory=C:\Program Files\CruiseControl.NET\server\AppBuilder 1.0 (Debug)\Artifacts;CCNetBuildCondition=ForceBuild;CCNetBuildDate=2009-01-22;CCNetBuildTime=09:25:55;CCNetIntegrationStatus=Unknown;CCNetLabel=3;
    CCNetLastIntegrationStatus=Failure;CCNetNumericLabel=3;CCNetProject=AppBuilder 1.0 (Debug);CCNetProjectUrl=<a href="http://CISERVER01/ccnet;CCNetRequestSource=jstong" rel="noreferrer">http://CISERVER01/ccnet;CCNetRequestSource=jstong</a>;
    CCNetWorkingDirectory=c:\depot\AppBuilder\1.0\" "/l:ThoughtWorks.CruiseControl.MsBuild.XmlLogger,ThoughtWorks.CruiseControl.MsBuild.dll;C:\Program Files\CruiseControl.NET\server\AppBuilder 1.0 (Debug)\Artifacts\msbuild-results.xml"</p>
  </blockquote>
  
  <p>If I run this manually at the command line I get a similiar error.</p>
  
  <p>It appears to me that the  isn't passing the correct command line to the MSBuild executable.</p>
  
  <p>Can you spot my error?  Or is this version of CruiseControl.NET (1.3.0.2918) broken with respect to the  task? </p>