title: Using cruisecontrol.net to automate asp.net mvc deployment to a fileshare
body: <p>I've been struggling to automate the deployment of my asp.net mvc app. I found a few questions on SO regarding this, but none of the answers really helped me along.</p>
  
  <p>My requirements are as follows:</p>
  
  <ul>
  <li>Not use NAnt.</li>
  <li>Not edit the .sln file. I want to use the same file for my dev box too.</li>
  <li>Deploy to a fileshare</li>
  <li>Should apply web.config transformations</li>
  </ul>
  
  <p>I found so many different deployment techniques, my head is spinning. And I've still got no idea what to do now. Please help.</p>
  
  <p>---Edit---</p>
  
  <p>Maybe I should rephrase this a bit; after building the website project with MSBuild. What should I copy to a file share to "deploy" my webapp?</p>
  
  <p>---2nd Edit---</p>
  
  <p>I'm comparing this to automating the build and deployment of a desktop application: with a desktop application; you just build it using the .sln file. And then copy everything from the bin/(debug|release) folder to the destination of your liking. My question is. What would be the equivalent in a web application?</p>
  
  <p>---And another one---</p>
  
  <p>I've been researching this for some time now. And some things start to fall into place. I now use the following:</p>
  
  <pre><code>msbuild "siteprojectfile.csproj" /T:Package
  </code></pre>
  
  <p>This way I get a zip file wich I can supposedly use with msdeploy. But I can't seem to use the file to deploy it to a file share. Suggestions are welcome!</p>