title: msbuild just deploy without build
body: <p>I know I can do this to build <em>and</em> deploy:</p>
  
  <pre><code>msbuild mysln.sln /p:DeployOnBuild=true /p:PublishProfile=&lt;profile-name&gt;
  </code></pre>
  
  <p>But I want to build in one step, move those artifacts to another location, then deploy.</p>
  
  <p>I could use msdeploy.exe to deploy, but I'd prefer to just do this with the msbuild command (which will locate and call msdepoy with the right args for me) the same way I do it now, but instead of DeployOnBuild I just want to Deploy.</p>
  
  <p>Edit: just to add to this, its a pain to create an msdeploy package and msbuild is already doing all this for me which is why I would like to have it orchestrate this for me.</p>
  
  <p>Edit: Is there a way I can see exactly what msbuild/msdeploy commands msbuild is running to create and deploy a package? I guess if I can record these exact commands I could do it manually and have msbuild just create the package and run the msdeploy command to deploy it. But I can't see what msbuild is actually doing.</p>