Microsoft Developer Evangelist
How Do I: Web.Config Transformations in VS2010
This is my first in a series of videos related to Visual Studio 2010 in the “How Do I” format. The videos themselves are short snippets that help you understand how to do specific things within the Visual Studio 2010 IDE. This first one is about web.config transformations.
In the past, dealing with environment-specific data points like Connection Strings, Logging Settings, etc. has been a real challenge. Most organizations have invented their own slick way to manage these different settings from environment to environment, but until now there hasn’t been a comprehensive, prescribed best practice for dealing with this challenge. Now, with Visual Studio 2010, a new feature called Web.Config Transformations solves this complex problem for you! Using the power of XSLT and some integrated tooling, you can now maintain separate settings for individual configuration items across an infinite number of configurations. Check out the video below for more details.
To see all the videos in this series, check out my channel on Vimeo
| Print article | This entry was posted by Chris Koenig on April 8, 2010 at 2:40 pm, and is filed under Videos. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
No trackbacks yet.
Comments are closed.






about 4 months ago
Hi Chris,
I have a MSBUILD task http://www.robusthaven.com/articles/MSBuild+Fle...
which allows a developer to create a config or any file that needs to be conditionally evaluated using C# syntax. I have an example at the very bottom that conditionally evaluates (creates) an xslt merge file that merge Elmah into an existing web.config with AltovaXML.
about 4 months ago
This is awesome, and a feature that has been needed for a loooooong time. The only issue I'm having, is that if I upgrade a vs2008 application, the config file doesn't have the drill down to the various build configuration versions. Any thoughts?
about 4 months ago
You should be able to RC on the web.config file and choose “Add Config Transforms”, which will create a transformation template for the current configuration. Give that a try and let me know if it does or doesn't work.
about 4 months ago
This is awesome, and a feature that has been needed for a loooooong time. The only issue I'm having, is that if I upgrade a vs2008 application, the config file doesn't have the drill down to the various build configuration versions. Any thoughts?
about 4 months ago
You should be able to RC on the web.config file and choose “Add Config Transforms”, which will create a transformation template for the current configuration. Give that a try and let me know if it does or doesn't work.