我正在开发一个 asp.net 项目,但还没有很长的 web.config 文件(超过 400 行)。但有了这个 nhibernate log4net 和 urlrewrites。它变得越来越大。有没有正确的方法将 web.config 分成几部分。像 nhibernate.config 和 log4net.config 当然还有 urlrewrite.config
system.webServer
是一个配置部分group- 你无法将其具体化。
您只能将 configSource= 放在配置上section - e.g.
<system.webServer>
<validation configSource="validation.config"/>
<modules configSource="modules.config" />
<handlers configSource="handlers.config" />
</system.webServer>
什么是配置节组或常规配置节只能通过查看这些内容的文档来确定(即使如此,通常也不太容易弄清楚它是节还是节组:-( )。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)