Extending app.config with addtional config

Y

Yash

Hi,

All configuration used by a .NET program goes in the app.config file.
Is it possible to add configuration from another config file so that
the program runs with an extended configuration?

For. e.g. Myapp.exe has app.config. I also have myfile.config which
follows the config file structure. I want .NET to consider app.config
and add to it the configuration I give in myfile.config.

What does it take to do this?

Thanks,
Yash
 
Y

Yash

In my case, the main application invokes my DLL. I would like to add
my configuration from the code in my DLL, without changing the main
application's config.
The main app calls an initialize function in my dll. This is where I
would like to ammend the configuration the program has read from
app.config.
 
S

sloan

You can look here, but that is 1.1 stuff I think:
http://www.bearcanyon.com/dotnet/#AssemblySettings


In my case, the main application invokes my DLL. I would like to add
my configuration from the code in my DLL, without changing the main
application's config.
The main app calls an initialize function in my dll. This is where I
would like to ammend the configuration the program has read from
app.config.
 

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