如何在与MSDeploy一起使用的Parameters.xml中指定IIS Web应用程序名称 [英] How to specify IIS Web Application Name in Parameters.xml used with MSDeploy
问题描述
我发现了如何设置应用程序池和默认值
I have found out how to set the application pool and default value
<parameter name="applicationPool" defaultValue="MyDefaultValue" >
<parameterEntry kind="DeploymentObjectAttribute" scope="application"
match="application/@applicationPool" />
</parameter>
有人知道如何设置"IIS Web应用程序名称"吗?在SetParameters.xml文件中将其生成为
Does anyone know how to set the "IIS Web Application Name"? It gets generated in the SetParameters.xml file as
<setParameter name="IIS Web Application Name" value="Default Web Site/MySite_deploy" />
我可以覆盖SetParameters.xml文件,但我宁愿在Parameters.xml文件中进行设置,但找不到parameterEntry类型.
I can overwrite the SetParameters.xml file, but I would rather set it up in the Parameters.xml file, but I can't find the parameterEntry type.
谢谢
推荐答案
在生成软件包时,您应该能够通过定义DeployIisAppPath
属性来覆盖存储在软件包中的默认值
You should be able to override the default value stored in the package by defining a DeployIisAppPath
property when you generate the package
或者,您可以声明DisableAllVSGeneratedMSDeployParameter=true
,而Visual Studio将不再为您自动生成任何参数,您必须自己声明所有参数.
Alternatively, you can declare DisableAllVSGeneratedMSDeployParameter=true
and Visual Studio will no longer automatically generate any parameters for you, you'll have to declare them all yourself.
如果您自己声明网站参数,则种类将为ProviderPath
.范围将为iisApp
或contentPath
,具体取决于所使用的提供程序.撕开一个包并查看archive.xml
文件,该值将是根清单元素的直接子代.
If you're declaring the web site parameter yourself, the kind will be ProviderPath
. The scope will either be iisApp
or contentPath
depending on what provider is being used. Tear open a package and look in the archive.xml
file, the value will be an immediate child of the root manifest element.
这篇关于如何在与MSDeploy一起使用的Parameters.xml中指定IIS Web应用程序名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!