Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Valid Parameters for MSDeploy via MSBuild

I'm trying to deploy a web application using MSDeploy, on Team Build in TFS. There are several questions that address the properties that have to be passed in MSBuild in order to call MSDeploy, but I haven't found sufficient documentation for what properties are available. Does someone have a list of available properties?

Here are some questions that I've found, but I haven't been able to find a definitive list of the properties:

  • Breaking MsBuild package & deploy into separate MsBuild and MsDeploy commands
  • How can I get TFS2010 to run MSDEPLOY for me through MSBUILD?
like image 878
merthsoft Avatar asked Apr 08 '11 17:04

merthsoft


2 Answers

Here's a list I've compiled for my own reference, along with some of the legal values that can be used. Note that these are passed into MSBuild using the /p:<PropertyName>=<Value> syntax.

  • DeployOnBuild
    • True
    • False
  • DeployTarget
    • MsDeployPublish
    • Package
  • Configuration
    • Name of a valid solution configuration
  • CreatePackageOnPublish
    • True
    • False
  • DeployIisAppPath
    • <Web Site Name>/<Folder>
  • MsDeployServiceUrl
    • Location of MSDeploy installation you want to use
  • MsDeployPublishMethod
    • WMSVC (Web Management Service)
    • RemoteAgent
  • AllowUntrustedCertificate (used with self-signed SSL certificates)
    • True
    • False
  • UserName
  • Password
  • SkipExtraFilesOnServer (leave existing non-conflicting files alone)
    • True
    • False
like image 61
Philip Hanson Avatar answered Oct 26 '22 23:10

Philip Hanson


Unfortunately documentation for this is almost non-existent at this point. If the various blog posts and forum posts aren't comprehensive enough, you can always look at the .target file that MSDeploy uses which shows how the various properties are used if you are willing to spend the time to wade through copious amounts of XML.

On my machine it's located here:

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets 
like image 39
Dylan Smith Avatar answered Oct 27 '22 01:10

Dylan Smith