는, 내가 가진 :ASP.NET 웹 구성 프로필? <code><system.web></code>에서 내의 Web.config에서
이의 .config의 디버그 버전에서<caching>
<outputCacheSettings>
<outputCacheProfiles>
<add name="Cache60Seconds"
location="ServerAndClient"
duration="60"
varyByParam=""
/>
</outputCacheProfiles>
</outputCacheSettings>
</caching>
, Web.Debug.config, 나는 0이되기 위해 프로필 "Cache60Seconds"의 duration
를 원한다.
즉, 개발할 때 "Cache60Seconds"의 지속 시간을 0으로 설정하면 캐시되지 않으므로 제품을 출시 할 때 기간을 60 초로 변경하고 싶습니다. 어떻게해야합니까?
이 링크가 정말 도움이 될 수 있는지 확인하십시오 http://frejnorling.wordpress.com/2011/05/15/automatically-create-different-web-config-files-for-debug-and-release-builds-in -visual-studio-2010/http://www.hanselman.com/blog/WebDeploymentMadeAwesomeIfYoureXsingXCopyYoureDoingItWrong.aspx –