VS2010, MSDeploy and declaration of parameters

Posted by MartinHN on Stack Overflow See other posts from Stack Overflow or by MartinHN
Published on 2010-04-29T11:59:51Z Indexed on 2010/05/01 3:27 UTC
Read the original article Hit count: 850

Hi

I'm trying to deploy an ASP.NET MVC 2 app using MSDeploy. I use VS2010 to generate the package as a ZIP. Inside that ZIP is a parameters.xml file that declares the parameters that I can set.

I want to be able to set more parameters, using the auto-generated deploy.cmd file like this:

MySite.deploy.cmd "-setParam:name='IIS Web Application Name',value=MySite" "-setParam:name=IisVirtualDirectoryPhysicalPath,value=C:\inetpub\MySite" "-setParam:name=httpBinding,value=*:80:www.mysite.dk"

That works fine, except for the httpBinding param. That is because that parameter is not declared inside the parameters.xml file that is added to the ZIP container.

I could go and add that parameter declaration manually, but isn't there a way to do it from the command line and have it declare parameters I have in another XML file?

© Stack Overflow or respective owner

Related posts about visual-studio-2010

Related posts about msdeploy