title: Using CruiseControl.NET and MSBuild to publish a website
body: <p>I am trying to set up <a href="http://en.wikipedia.org/wiki/CruiseControl" rel="nofollow">CruiseControl.NET</a> to automatically download a new version from SVN (<a href="http://en.wikipedia.org/wiki/VisualSVN_Server" rel="nofollow">VisualSVN_Server</a>) and publish it to the beta directory.</p>
  
  <p>THis is the CruiseControl.NET configuration file concerning <a href="http://en.wikipedia.org/wiki/MSBuild" rel="nofollow">MSBuild</a>:</p>
  
  <pre><code>&lt;msbuild&gt;
      &lt;executable&gt;C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe&lt;/executable&gt;
      &lt;workingDirectory&gt;C:\CI\WORKING&lt;/workingDirectory&gt;
      &lt;projectFile&gt;WashMyCarHomepage\WashMyCarHomepage.csproj&lt;/projectFile&gt;
      &lt;buildArgs&gt;/noconsolelogger /p:Configuration=Debug /v:diag /p:WebProjectOutputDir=C:\inetpub\wwwroot.beta&lt;/buildArgs&gt;
      &lt;targets&gt;Build;Test&lt;/targets&gt;
      &lt;timeout&gt;900&lt;/timeout&gt;
      &lt;logger&gt;C:\Program Files (x86)\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll&lt;/logger&gt;
    &lt;/msbuild&gt;
  </code></pre>
  
  <p>CruiseControl.NET runs MSBuild successfully, but MSBuild fails with:</p>
  
  <pre><code>standard-error stream closed -- null received in event
  standard-output stream closed -- null received in event
  process exited event received
  </code></pre>
  
  <p>I was also trying to run MSBuild manually from a console to try whether it works alone. But I was unable to get a proper output (publishable to the web). I tried: </p>
  
  <pre><code>C:\Windows\Microsoft.NET\Framework\v4.0.30319&gt;MSBuild.exe C:\CI\WORKING\WashMyCarHomepage\WashMyCarHomepage.csproj /property:OutDir=C:/CI/TEST;Configuration=Release /t:Publish
  </code></pre>
  
  <p>But the project was skipped by "skipping unpublishable project".</p>
  
  <p>I have a following structure of the solution:</p>
  
  <pre><code>WashMyCarHomepage\WashMyCarHomepage.sln
  WashMyCarHomepage\Repository\Repository.csproj
  WashMyCarHomepage\WashMyCarHomepage\WashMyCarHomepage.csproj
  </code></pre>
  
  <p>How can I fix this problem?</p>