I am trying to deploy an ASP.NET MVC 2 application using MsDeploy. I am using VS2010 to create a package as a ZIP. Inside this zip file is a file parameters.xmlthat declares parameters that I can set.
I want to be able to set more parameters using an automatically generated file deploy.cmdas follows:
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"
This works fine except httpBinding param. This is because this parameter is not declared inside the file parameters.xmlthat is added to the ZIP container.
I can go and add this parameter declaration manually, but is there no way to do this from the command line and declare the parameters that I have in another XML file?
source
share