From the course: Bamboo Essential Training (2018)

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Web.config transformation using Bamboo and MSBuild (.NET)

Web.config transformation using Bamboo and MSBuild (.NET) - Bamboo Tutorial

From the course: Bamboo Essential Training (2018)

Web.config transformation using Bamboo and MSBuild (.NET)

- [Instructor] In this topic we want to see that how we can transform our web.config because, as you know, in any ASP.NET, or ASP.NET MVC application there is a web.config which includes the configuration of our program. And it has some transformation files such as Web.Debug.config, and Web.Release.config. And if I build my application, and publish it in debug mode it's gonna use Web.Debug config, and if I publish my application in release mode, like this, it's gonna use Web.Release.config, but it's not just gonna use that file as it is. It's gonna merge them. So this is the structure of our web.config, and this Web.Release config. And as you see tags, some of these elements, they've got transformations. And as you see these elements have transformations, so you can transform XML elements in different ways. And in order to turn a config file to a transformation config file, you need to have this xml namespace, xdt, and this namespace at the top of your configuration element. Why do we…

Contents