It is this time again when I have to switch platform I work at. This time I jumped into .NET world. It is not an unfamiliar ground, I was doing some work with .NET before and I like it (not all of it though).
One of the interesting things we came across this week was a config file for web application, so called Web.config. So we desired to switch some settings based on environment where application was deployed. Simplest thing we could think of was referring in a config section to external file with settings. Something like this:
…
<web.model configSource=”file.with.config” />
…
Deployment with NAnt was just deploying proper file to server and all was automated.