Continuous deployment with multiple web projects in solution

We use VS2012 and have a solution with four web projects in it. We have added the following MSBuild arguments to the msbuild Continuous Integration arguments:

/ p: DeployOnBuild = True / P: Configuration = Testing / p: DeployTarget = MsDeployPublish / p: MSDeployPublishMethod = WMSvc / p: CreatePackageOnPublish = False / p: DeployIisAppPath = "{test}" / p: SkipExtraSerlePlOler TruePilesOlferOlOlPleOlFeLOlOfElOlOfElFileOlE truePlOperlOpLeOFerOlEpLeOlFeOlOpErLOpOlErFlOl = {test} /MsDeploy.axd/P: AllowUntrustedCertificate = True / p: username = {username} / p: password = {password}

When we perform the verification and continue the integration, he publishes all 4 websites in one directory. How to indicate which project belongs to the IIS application?

We tried to move the settings to csproj, as suggested on How to tell TFS about the deployment of several web applications contained in one solution? After making the changes, the check worked, but did not publish.

+6
source share
1 answer

It is deployed to the same site because you pass DeployIisAppPath on the command line.

You can create a publishing profile in each web application with the same name (for example, Stage.pubxml ), each of which contains a differen DeployIisAppPath . When deploying, you can specify /p:PublishProfile=Stage , and it will use the settings for this profile for each specific project.

If you want to specify properties such as SkipExtraFilesOnServer and MsDeployServiceUrl on the command line, just remove them from your publications.

+15
source

All Articles