Home > Uncategorized > Visual Studio 2010 Publish Command from msbuild Command line

Visual Studio 2010 Publish Command from msbuild Command line

July 15th, 2010

Seems like there a bunch of confusion about how to produce the “Publish” behavior provided by Visual Studio 2010 from msbuild 4 command line. The question I keep seeing over and over again is: How do I publsih the output of a web application with web.config tranformations included. This should get the job done:

msbuild solution.sln 
/p:Configuration=Release;DeployOnBuild=true;
DeployTarget=Package;_PackageTempDir=..\publish
  • Facebook
  • Twitter
  • Delicious
  • Reddit
  • StumbleUpon
  • Share/Save/Bookmark
Author: Christopher Patterson Categories: Uncategorized Tags:
  1. BadBadMan
    August 31st, 2010 at 13:15 | #1

    How did you find the documentation on this topic? I’m looking for all the different possible values for /p:DeployTarget, /p:MsDeployPublishMethod, etc. and can’t find it andywhere. Where did you find the documentation to know that ‘Package’ was an option for /p:DeployTarget?

    Thanks!

  2. September 1st, 2010 at 20:11 | #2

    I was not able to find any official documentation on those arguments. Basically, I was able to put it together based on examples on stackoverflow and various blog posts. What are you trying to accomplish?

  1. No trackbacks yet.