Question

Currently I do the following:

  1. Create package using

    msbuild something.csproj /P:Configuration:Some /T:Package

  2. After that I go to the Package folder under obj\Some\Package and run the following

    something.csproj.deploy.cmd /y /M:https://mydeployservice /u:user /p:password --allowUntrusted /A:Basic

Everything works fine, but I wonder how do I specify the site which I want the application installed to? Here I only define the service/server, and the name of the site is from the deploy command. Is it possible to use a parameter for the site name?

Was it helpful?

Solution

If you're using Web Deploy, it should be possible to use a parameter for the site name when you package the source, then specify a new site name when you deploy. Here are some articles that show how to use parameters:

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top