aloneguid / config

⚙ Config.Net - the easiest configuration framework for .NET developers. No BS.
MIT License
656 stars 86 forks source link

How manage custom sections with in AppConfig? #64

Closed gabrielizalo closed 5 years ago

gabrielizalo commented 6 years ago

Hello,

Having an app.config like this one:

<configuration>
  <configSections>
    <section name="CategorizerSettings" type="???" />
  </configSections>
  <CategorizerSettings>
    <category Text="Google" Folder="GoogleFolder" />
    <category Text="Yahoo" Folder="YahooFolder" />
  </CategorizerSettings>
  <appSettings>
    <add key="SourceFolder" value="MySourceFolder" />
  </appSettings>
  ...

I can read easly app key SourceFolder, but how I can read the categories into CategorizerSettings section?

Thanks

aloneguid commented 6 years ago

This is not supported at the moment, however you can extend existing config store to add this easily as it depends on standard ConfigurationManager.

aloneguid commented 5 years ago

they are all supported since version 4.12, see https://github.com/aloneguid/config/blob/master/doc/Stores_AppConfig.md

gabrielizalo commented 5 years ago

You are the best.. Thankssss