【发布时间】:2011-12-02 14:07:46
【问题描述】:
在我的 Web.config 文件中有以下设置:
<add key="ClientMail" value="ridermansb@bindsolution.com"/>
在我的文件中,我是 Web.Release.config:
<appSettings>
<add key="ClientMail"
xdt:Transform="SetAttributes"
xdt:Locator="Match(value)"
value="ridermansb@gmail.com"/>
</appSettings>
在发布模式下运行站点时,如何在 Web.Release.config 中应用设置?
在这种情况下,我需要更改 <appSettings> 中的设置值
【问题讨论】:
标签: asp.net-mvc-3 web-config transform configuration-files transformation