【发布时间】:2012-03-19 20:58:51
【问题描述】:
我已经创建了一个 parameters.xml 并验证了 xpath 可以与在线工具 http://www.xpathtester.com/ 一起使用
<?xml version="1.0" encoding="utf-8" ?>
<parameters>
<parameter name="Website URL" description="Please provide the base web address for the external part of the application" defaultValue="https://someOtherSite.com">
<paramterEntry kind="XmlFile" scope="\\web.config$" match="/configuration/appSettings/add[@key='ExternalSiteBaseUrl']/@value" />
</parameter>
<parameter name="Authentication Service URL" description="Please provide the web address for the authentication service" defaultValue="http://someOtherSite.com/auth">
<paramterEntry kind="XmlFile" scope="\\web.config$" match="/configuration/appSettings/add[@key='AuthServiceAddress']/@value" />
</parameter>
</parameters>
当我通过 IIS 导入 zip 文件时,我进入带有连接字符串的设置页面,这两个选项按预期显示。无论我将值设置为什么,它们都会被忽略。 web.config 中的值保持不变。但是会应用连接字符串更改。在随后弹出的摘要中,有几行表明连接字符串在范围内,但与这两个值没有任何关系。有没有我遗漏的步骤?
【问题讨论】: