如何使用web.config
转换将域属性包含在我的生产中web.config
?
我的基地有以下内容web.config
。
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="2880" />
</authentication>
我曾尝试在我的 中使用以下内容web.prod.config
,但在发布项目时它没有添加该属性。
<authentication mode="Forms" xdt:Transform="Replace">
<forms loginUrl="~/Account/Login.aspx" timeout="2880" domain=".mydomain.com" />
</authentication>
我希望输出如下。
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="2880" domain=".mydomain.com"/>
</authentication>