2

We have Release Management Update 2 installed and using TFS 2013 Update 2 continuous deployment build template for releasing a web site.

We have three stage types: Integration, Staging and Production.

What's the best way to release a web site when there are web.config transformations for each stage? Transforms are for connection string, appsettings and log4net.

I'm starting to lean toward this question's best answer, yet would like to know if I'm missing a tool or an easier path.

Community
  • 1
  • 1
Werewolf
  • 472
  • 3
  • 11

1 Answers1

4

Release Management for Visual Studio 2013 has its own variable management system. When you configure a Component, you get to set what properties are used for it.

You can then use a single web.config file with "__myveriableName__" in place of the values. On the properties tab of the Component you can select what types of files the system will find and replace variable in. So here you would say *.config.

This way you can have just two configs configured... dev.config that you use for local development with local settings and a release.config with the variables defined that Release Management uses...

You can get information on how from Professional Application Lifecycle Management with Visual Studio 2013 or on the Visual Studio site.

Werewolf
  • 472
  • 3
  • 11
  • My understanding: -Create new component, -fill out the source tab, -add web.config value variable names in the configuration variables tab. web.release.config transform file puts var names in for value="myveriableName", -Where in the RM work flow does this new component go? After or before the copy of the web site files to the web server? Or does it matter? – Werewolf May 14 '14 at 19:43
  • after thinking for a bit, this goes into the copy web files component and not something different, forget my last. :) – Werewolf May 14 '14 at 19:52
  • 2
    The VS site MrHinsh [linked](http://www.visualstudio.com/en-us/get-started/manage-your-release-vs) was a helpful refresher for me, and the [more detailed pdf file](http://go.microsoft.com/fwlink/?LinkId=398104) has the exact details I was looking for for the Configuration Variables tab. – Werewolf May 15 '14 at 12:03