App.Config versus exe.config

C

Chris Zopers

Hello,

I've developed a dll that uses an App.config file to read some settings.

After that, I've developed two executables and both use the dll I just
mentioned.

After building the exe's, both exe's get an exe.config file in the bin
directory and this is the same file as the App.config file of the dll.

I do not want this. I just want one configuration file that is used by
the dll, now I get for both executables a separate config file and this
is done automatically when I build the exe projects. So now the same
settings are in two different config files.

Does anyone know how I can solve this?

Greetings,
Chris.
 
M

Mr. Arnold

Chris Zopers said:
Hello,

I've developed a dll that uses an App.config file to read some settings.

After that, I've developed two executables and both use the dll I just
mentioned.

After building the exe's, both exe's get an exe.config file in the bin
directory and this is the same file as the App.config file of the dll.

I do not want this. I just want one configuration file that is used by
the dll, now I get for both executables a separate config file and this
is done automatically when I build the exe projects. So now the same
settings are in two different config files.
Does anyone know how I can solve this?

You do know there is the ConfigurationManager in .Net 2.0 and the
Applications Block in .Net 1.1 using the ConfigurationSettings, which both
of them do the same thing in working App.config or the appname.execonfig.

http://www.dotnetfun.com/articles/framework/2.0/WhatsNew20ConfigurationManager.aspx
 
T

TM Software

DLL dont read app.config file. You have to read configuration data and
send it to dll.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top