Visual Studio 2010 and ASP.Net 4.0 Web.config Transformations


I am excited to see some of the new features that are lined up for Visual Studio 2010 and the .Net Framework 4.0.  Of these many new features one that really comes close to home is the "Web.Config Transformations" feature.  How many times have you developed an application on your workstation and needed to now deploy your application to staging, and then eventually production, or some other environment only to find out when you move the files that you need to change a bunch of settings in Web.Config to reflect the new environment.  Most commonly connection strings.  Today you have to remember this before deployment and make the changes manually or take a more proactive approach and create multiple config files write a MSBuild script that copies the correct web.config to the correct environment.  Well once VS 2010 and .Net 4.0 comes this is no more!  Using Web.config Transformations and the envrionment settings Visual Studio will now take care of this for you.  You define the differences in a "Transform" file and depending of the environment settings and the use of "one-click" web deployment you will get your application deployed with the correct settings from the beginning! For more on how this feature will work check out the video from the 10-4 show on Channel 9.


https://channel9.msdn.com/shows/10-4/10-4-Episode-10-Making-Web-Deployment-Easier/

Skip to main content