Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

Hooking into load of App.config/Web.config ??

$
0
0

I have some issues where same configuration information is scattered into many different configuration files.

I sort of now how to solve it at deploy time but I would like if Operations only had one place to change vital information.

One way to do this, would be some sort of runtime macrosubstituions. For instance

$(ENV_VARIABLE)For substituting a value with the value from the environment variables

$(INCLUDE_FILE)For including another file

$(PROPERTY_FILE_KEY)Like (N)ANT: Refer to a value in a property file

I order to do this I need to be able to hook into the configuration XML nodes when they are loaded. I could probably do this in configuration section handlers, but I would like something generic.

And of course: If anyone has created already, that would just be swell :)

Best regards

Soeren D. 


Viewing all articles
Browse latest Browse all 1710

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>