Generate Web.Debug.config which could be debugged

无人久伴 提交于 2019-12-04 22:39:37
Guillaume

The web.debug.config is not used when you are running/debugging from sources : Use Visual Studio web.config transform for debugging

It easier to set debug="true" in Web.config and remove it using Web.release.config.

Sample Web.Release.Config :

<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
  <system.web>
    <compilation xdt:Transform="RemoveAttributes(debug)" />
  </system.web>
</configuration>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!