By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,985 Members | 1,694 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,985 IT Pros & Developers. It's quick & easy.

App.config files from a dll

P: 81
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!
Feb 9 '09 #1
Share this Question
Share on Google+
2 Replies

Expert 100+
P: 750
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?
Feb 10 '09 #2

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

Post your reply

Sign in to post your reply or Sign up for a free account.