由网友(一生足矣)分享简介:更新:这个问题,包括标题,被改写,看到历史的细节 我知道下面的App.config包括外部文件:I know that the following App.config includes a external file: 更新:这个问题,包括标题,被改写,看到历史的细节
我知道下面的App.config包括外部文件:
I know that the following App.config includes a external file:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings configSource="appSettings.config"/>
<system.net>
<connectionManagement>
<add address="*" maxconnection="50"/>
</connectionManagement>
</system.net>
</configuration>
但我不知道怎么的system.net移动到第二个文件。其实我还没有尝试过,但我几乎可以肯定,这是行不通的,我想知道是否有办法一个app.config包含另一个App.config文件以供参考。
But I don't know how to move the system.net to the second file. Actually I haven't tried it, but I am almost certain that it will not work, and I want to know if there is an way for an App.config to include another App.config file by reference.
推荐答案
我觉得你只是删除了configSource属性,然后包括内的所有内容&LT;的appSettings&GT;
和&LT;的ConnectionStrings&GT;
元素
I think you just remove the configSource attributes and then include all the content within the <appSettings>
and <connectionStrings>
elements
相关推荐
最新文章