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.
 
Back
Top