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:
Some more here https://msdn.microsoft.com/en-us/ff622991.aspx (for sharepoint)
To create a package in build: /p:IsPackaging=true
To set the publish directory in the same drop output location: /p:PublishDir= When your solution contains multiple app projects, set the following parameter to produce app specific publish directories. /p:AppSpecificPublishOutputs=true
WebDeploy configuration of a SelfContained .NET Core2 application. Note 2 mandatory properties:
Missing RuntimeIdentifier throws:
Missing DeployIisAppPath can throw:
In case you are passing the parameters to dotnet publish, avoid circular dependency with /p:DeployOnBuild=false
Complete WebDeploy configuration for command line:
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.I don't know if this is what you are looking for but you can invoke
msdeploy
with the/?
argument and it will display a list of valid argumentsUnfortunately 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:
How about this one /p:IncrementalBuild=True