App.config files from a dll

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nelsonbrodyk
    New Member
    • Mar 2008
    • 81

    App.config files from a dll

    Hey All,
    Another question around a more modular design approach. So far the answers I've seen say to use a xml properties file, or to use a key value properties file.

    I have an application that will load dlls. These dlls have configuration information that they need to use. Basically I want a dll specific app.config file. This doesn't seem to work unless the info is within the .exe, which is not what I want to happen.

    Any thoughts would be appreciated, thanks!
  • PRR
    Recognized Expert Contributor
    • Dec 2007
    • 750

    #2
    Originally posted by nelsonbrodyk
    Hey All,
    Another question around a more modular design approach. So far the answers I've seen say to use a xml properties file, or to use a key value properties file.

    I have an application that will load dlls. These dlls have configuration information that they need to use. Basically I want a dll specific app.config file. This doesn't seem to work unless the info is within the .exe, which is not what I want to happen.

    Any thoughts would be appreciated, thanks!
    You could have multiple config files in your bin folder or maybe some other subfolder... when you load the dll, you could call a function to read the corresponding config file.. You may have to create separate appdomain and pass appdominsetup object specifying folder name and config file?

    Comment

    • nelsonbrodyk
      New Member
      • Mar 2008
      • 81

      #3
      hmmm ok thanks I'll give that a look. Is it fairly easy to merge multiple app.config files together?

      Comment

      Working...