Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 19, 2012 06:02 PM by niksv
Nov 18, 2012 03:12 AM|LINK
I have a webapp that has 2 different modes, lets say demo mode and no-demo. For each mode I use a diferent set of setting in the web.config file. Also I have developer servers and production servers. I'm using web transformation to create the web.config
for ach of my instances. So I need to transform to demo-dev, demo-prod, no-demo-dev and no-demo-prod.
Instead of having to copy paste the setting that are shared between demo-dev and demo-prod I wiil like to have these settings in one file and then the transformations will change what is not common(like the db connection). Any way of doing that?
I tried creating a demo.config wth all common settings:
<add key="key1" value="value1"
.....(much more elements here)
And the in the Web.demo-prod.config I try to call that xml using xi:include:
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform" >
Dec 19, 2012 06:02 PM|LINK
I think this will suffice: http://vishaljoshi.blogspot.in/2009/03/web-deployment-webconfig-transformation_23.html