Can more than one app use the same config file.

  • Thread starter Thread starter Peter Rilling
  • Start date Start date
P

Peter Rilling

Suppose that I write a few small applications that are all included
together. They all have similar configuration settings. Can each of these
applications use a single config file? If this is not possible, what about
defining an entity that each of the config files references? Are entities
resolved when the config files are processed?
 
I think the config file name is bound to the app name. For instance, like
myapp.exe to myapp.exe.config so you can't expect multiple apps to use
a single config without some work.

You could have a single XML file that contains the config for all apps
and write your own parsing routine in the apps to access them using xpath.
 

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

Back
Top