views:

483

answers:

0

Is there an equivalent for the Sprint PropertyPlaceholderConfigurer for .NET app.config or web.config files?

We are currently using different version of app.config for different environments (web.prod.config, web.qa.config, etc.) which get renamed when the app is deployed. However, most of the config file is the same for each environment, so it would be nice to just have a "template" config, with property placeholders that get filled in from a separate file at runtime.

I know you can do build tricks to copy different version of the config file, but it would be nice to not have large parts of the config duplicated in different files.

EDIT: I know you can do this in Spring.NET, but I was hoping for something that comes out of the box from Microsoft...