title: Using MSBuild.exe to "Publish" a ASP.NET MVC 4 project with the cmd line
body: <p>I'm looking for a command to run against the <code>MSBuild.exe</code> that just takes a MVC 4 project and publishes it to a given directory.</p>
  
  <p>For example, </p>
  
  <pre><code>MSBuild &lt;solution&gt;/&lt;project&gt;.csproj -publish -output=c:/folder
  </code></pre>
  
  <p>This is obviously incorrect syntax. I'm trying to simplify my question.</p>
  
  <p><a href="https://stackoverflow.com/questions/3097489/how-to-publish-web-with-msbuild">This question</a> talks of a build XML, but I'm not trying to do anything with that much detail.</p>
  
  <p>I'm simply trying to do a deploy.</p>
  
  <p>Further down in <a href="https://stackoverflow.com/questions/3097489/how-to-publish-web-with-msbuild">that question</a>, someone speaks of "MSDeploy". I can look into that, but is it the only option? I do not have the ability to install web deploy on the server. In which case, all I really need to do is "Publish" and send the contents of the published project to a given directory on the server/file-system.</p>
  
  <p>Does anyone have a one liner I can use?</p>
  
  <p>Do I have to use MSDeploy?</p>
  
  <p>Does MSDeploy require web deploy to be installed on the server?</p>
  
  <p>Doesn't setting up web deploy on the server require setting up some ports, permissions, and installing some IIS add-ons?</p>
  
  <p>I'd love to just execute something simple.</p>