开发者

Can I specify site after I have built the deployment package with Microsoft Web Deploy?

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 servic开发者_JAVA百科e/server, and the name of the site is from the deploy command. Is it possible to use a parameter for the site name?


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:

  • Customizing a Deployment Package

  • Web Deploy Parameterization in Action

  • Web Deploy: Replace Rule vs. Parameterization

  • Packaging and Deploying Web Applications for the Visual Studio Development Web Server

  • Team Build + Web Deployment + Web Deploy + VS 2010 = Goodness

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜