This project has moved and is read-only. For the latest updates, please go here.

How to deploy BizTalk app with differnt Web.config files based on the environment

Topics: IIS and Web Services
Dec 10, 2013 at 10:53 PM

First of all thanks for promoting BTDF.its Great and Powerfull.

I am working on application that contains exposed service and due to differnent settings per environment we are having differnt web.config files per environment.In manual deployment we used to copy web.config file from SVN to service folder located in server.I have 4 differnt web.config files for same service with differnt settings in it based on the environment.

How can i achieve this in BTDF.

Dec 11, 2013 at 6:08 AM
Hi Bobby,

The best practice is to use the web.config as a template, just like with the bindings XML file. Put the per-environment settings into the settings Excel spreadsheet, add replacement tokens into web.config and add web.config to the FilesToXmlPreprocess ItemGroup. It can be transformed for the appropriate environment as needed just like the bindings file.

Marked as answer by tfabraham on 12/17/2013 at 12:53 PM
Dec 12, 2013 at 3:34 PM
I followed above steps and its working fine.

Thanks Tom.