【发布时间】:2012-02-17 21:28:52
【问题描述】:
app.config 中的 appsettings 标签有一个文件属性:
<appSettings file="other.config">
..
..
</appSettings>
这是如何工作的?它会将 appSettings(原始)中的内容与 other.config 文件合并吗?还是会覆盖它?如果 other.config 文件不存在,它应该崩溃吗?
我自己在尝试,如果密钥不在原始文件中,它似乎没有从 other.config 中读取它?
other.config 文件应该只有 xml 节点,还是应该都在 appsettings 元素内?
<appSettings>
<userId>123</userId>
</appSettings>
或
<userId>123</userId>
【问题讨论】:
标签: c# asp.net visual-studio web-config