在我的 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>
中的一个设置的值。