It's deploying to the same site because you are passing DeployIisAppPath
in at the command line.
You can create a publish profile in each web application with the same name (eg. Stage.pubxml
), each containing a differen DeployIisAppPath
value. When you deploy, you can specify /p:PublishProfile=Stage
and it will use the settings from that profile for each specific project.
If you want to specify properties like SkipExtraFilesOnServer
and MsDeployServiceUrl
from the command line, just remove them from your publish profiles.