I have two web projects in one solution, and I would like to deploy them using msbuild and WebDeploy (this happens through the CI server).
I am currently running the command line:
C:\ProjectFolder>msbuild <solution>.sln /p:Configuration=<Release> /p:OutputPath=bin /p:DeployOnBuild=True /p:DeployTarget=MSDeployPublish /p:MsDeployServiceUrl=https://<ServerUrl:port>/msdeploy.axd /p:username=<user> /p:password=<password> /p:AllowUntrustedCertificate=True /p:DeployIisAppPath=<SiteName> /p:MSDeployPublishMethod=WMSVC
This deploys one project, as expected. But how can I deploy both? There is nowhere on this command line where I indicated the name of the project - why did he choose one project to deploy on top of another?
Ideally, I could deploy two projects with the same team, something like
... /p:Project=Project1 /p:DeployIisAppPath=<SiteName>/Project1 /p:Project=Project2 /p:DeployIisAppPath=<SiteName>/Project2
But I doubt it is possible. Also, I just want to know how to specify the project name on the command line.
command-line-arguments msbuild msdeploy
configurator
source share