I generally include a few config files - e.g. app.config.TEST app.config.UAT, app.config.LIVE - and include an installer class in the main config which renames the correct one, and deletes the others.