web.config
변환을 사용하여 내 제작물에 도메인 특성을 포함하려면 어떻게해야합니까? web.config
?ASP.NET 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>
이것은 질문과는 관계가 없지만 실제로 도메인은'= ". mydomain.com"대신 "="mydomain.com "'... 여기에 있어야하는 기간입니까? – Kiril
고마워, 그래, 거기에 있어야 점이있다, 이것은 하위 도메인에 대한 음식을 제공 할 것이지만, 어쨌든 많은 감사합니다. – Kevin