在配置文件中链接configSource

时间:2015-09-04 15:10:30

标签: configuration web-config configsource

是否可以“嵌套”configSourced配置?我收到一个错误:'无法识别的属性'configSource'。请注意,属性名称区分大小写。'

文件夹结构:

Root Folder
Config
    EnvironmentConfiguration
        DistributedCalls.config
    UmbracoSettings.config  
web.config   

的Web.config

<umbracoConfiguration>
    <settings configSource="config\umbracoSettings.config" />
....
</umbracoConfiguration>

umbracoSettings.config

...
<distributedCall configSource="EnvironmentConfigurations\DistributedCalls.config" />
...

DistributedCalls.config

<?xml version="1.0"?>
<!-- Used by umbracoSettings.config --> 
<distributedCall enable="false">

0 个答案:

没有答案