How do you load the app.config file into a DLL

Posted by Bluephlame on Stack Overflow See other posts from Stack Overflow or by Bluephlame
Published on 2010-03-14T10:44:37Z Indexed on 2010/03/14 10:55 UTC
Read the original article Hit count: 575

Filed under:
|

So I cant find a definitive answer to the Question. How do you load the app.config file into a DLL.

I understand that generally the App.config info should be put into the executable app.config. However i am building an add-in and have to executable available.

I would like to use the namespace.dll.config file to store my variables, but i need a way of loading it into the system.

Do you need to build out some code to load this file in?
Can you use the configurationManager namespace to make this happen easily?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about app.config