C# 将配置管理应用程序块.net1.1迁移到system.Configuration

C# 将配置管理应用程序块.net1.1迁移到system.Configuration,c#,.net,migration,configuration-files,configurationmanager,C#,.net,Migration,Configuration Files,Configurationmanager,我必须将大型.NET1.1应用程序迁移到.NET3.5 系统使用配置管理应用程序块CMAB加载从app.config文件开始的配置文件,如下所示: <configuration> <configSections> <section name="applicationConfigurationManagement" type="Microsoft.ApplicationBlocks.ConfigurationManageme

我必须将大型.NET1.1应用程序迁移到.NET3.5

系统使用配置管理应用程序块CMAB加载从app.config文件开始的配置文件,如下所示:

<configuration>
<configSections>
    <section 
        name="applicationConfigurationManagement" 
        type="Microsoft.ApplicationBlocks.ConfigurationManagement.ConfigurationManagerSectionHandler,Microsoft.ApplicationBlocks.ConfigurationManagement, Version=1.0.0.0,Culture=neutral,PublicKeyToken=e64cb664730084d3" />
    <section
        name="MyAppSystemSettings"
        type="Microsoft.ApplicationBlocks.ConfigurationManagement.XmlHashtableSectionHandler,Microsoft.ApplicationBlocks.ConfigurationManagement, Version=1.0.0.0,Culture=neutral,PublicKeyToken=e64cb664730084d3" />
</configSections>

<appSettings>
    <!-- Key / Value Pairs -->
</appSettings>

<!-- ##   Configuration Management Settings   ## -->
<applicationConfigurationManagement defaultSection="MyAppSystemSettings">
    <configSection name="MyAppSystemSettings">
        <configCache enabled="true" refresh="* 6 * * *" />
        <configProvider 
            assembly="Microsoft.ApplicationBlocks.ConfigurationManagement, Version=1.0.0.0,Culture=neutral,PublicKeyToken=e64cb664730084d3" 
            type="Microsoft.ApplicationBlocks.ConfigurationManagement.Storage.XmlFileStorage"
            signed="false" 
            refreshOnChange="false" 
            encrypted="false" 
            path="C:\Program Files\MyApp\Config\MyAppSystemSettings.Config" />
    </configSection>
</applicationConfigurationManagement>
</configuration>
可以看出,这是引用MyAppSystemSettings.Config“sub”配置文件,该文件如下所示:

<configuration>
<MyAppSystemSettings>
    <XmlSerializableHashtable xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <Entries>
        <Entry>
          <key xsi:type="xsd:string">Key0</key>
          <value xsi:type="xsd:string">Value0</value>
        </Entry>
        <Entry>
          <key xsi:type="xsd:string">Key1</key>
          <value xsi:type="xsd:string">Value1</value>
        </Entry>
        <Entry>
          <key xsi:type="xsd:string">ExtraConfigFile</key>
          <value xsi:type="xsd:string">C:\Program Files\MyApp\Config\ExtraConfig.xml</value>
        </Entry>
     </XmlSerializableHashtable>
  </MyAppSystemSettings>
</configuration>
考虑到app.config文件引用了10多个类似于MyAppSystemSettings.config的“子”配置文件,并且每个文件都包含100多个条目,我正在寻找最简单的方法将它们迁移到正确使用System.Configuration,以获得与使用CMAB的.net 1.1解决方案相同的结果