How to maintain multiple configuration files for multiple deployment environment?

This used to be one of the most challenging issue that the majority of the developers come across when to deploy their application into a variety of environments such as development, test(or staging) and production.  The problem increases linearly if the application is to be deployed to multiple customers since each of them may be expected to have their own development, test and production environments.

Visual Studio 2010 provides a lean solution , namely Web.Config Transformations, for this sticky problem.  Below are simple tutorials about how to apply the solution.

http://msdn.microsoft.com/en-us/gg454290

http://msdn.microsoft.com/en-us/vstudio/ff801895

Edit: It is possible now to apply configuration file transformation even for console applications with the following free extension that has recently been released.

http://visualstudiogallery.msdn.microsoft.com/579d3a78-3bdd-497c-bc21-aa6e6abbc859

image

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s