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>