Configuring root deploy as the default
I'm setting up a Web Deploy package from VS 2010 that will be heading to the client as a .zip and run using the GUI (not the generated batch file).
The issue I'm having is that I haven't yet figured out how to have the website deploy as a 'root' website by default , as all package efforts so far include a virtual directory default.
In IIS7/7.5:
In Visual Studio 2010, the 'IIS Web site/application' field in Package/Publish Web settings:
I have noticed that in the (ProjectName).SetParameters.xml file outsite the deployment .zip file, if contains the correct setting (Which works when run from the command line)
<setParameter name="IIS Web Application Name" value="WebsiteName/" />
Any suggestions as to how to get it to default to the root website when installing within the IIS GUI?
I know its an old question, but I found it while strugling with the same problem myself, and want to share my solution if it can help anyone else.
The following has been tested using Visual Studio 2013 and Web Deploy 3.5 installed on Windows 7.
To make the "Application Path" be blank when using the Deploy|Import application... on IIS, set the DeployIisAppPath to a slash instead of blank. The parameter can be added to your .pubxml file in "PublishProfiles" used for deploying.
<DeployIisAppPath>/</DeployIisAppPath>
This will make the default value of the field blank while importing package (see screenshot):
I have not managed to get rid of that annoying warning message.
链接地址: http://www.djcxy.com/p/81686.html上一篇: 两个匹配的服务器上的Web Deploy 2.0中可用的选项不一致
下一篇: 将root部署配置为默认值