I am using Tfs 2012 to build/deploy our Asp.Net web apps. We have a build definition that builds 5 solutions (.sln files). This is how our MsBuild arguments look like:
/p:DeployOnBuild=True /p:AllowUntrustedCertificate=True /p:DeployIisAppPath="Test" /p:DeployTarget=MsDeployPublish /p:CreatePackageOnPublish=True /p:MSDeployPublishMethod=WMSVC /p:MSDeployServiceUrl="https://{server}:8172/msdeploy.axd" /p:UserName="{user}" /p:Password="{password}"
I need to deploy all 5 sites with Web Deploy using this build definition. They share all the parameters except for the DeployIisAppPath of course. It works for 1 solution, but for more than 1, I need to input a different DeployIisAppPath for each solution, so that each one deploys to the correct site in IIS.
I've checked these questions and other documentation but with no luck yet:
Running a build against multiple projects with different build arguments
Continuous deployment with multiple website projects in solution
How to pass TFS variable to a MSBuild task of the project
TFS2010 Build Definition to Deploy to multiple servers?
I've tried passing the arguments as properties to the {siteName}.Web.csproj for each sln as properties too.
Any help will be appreciated.