Farhan
Farhan

Reputation: 2575

WebConfig with target environment middle word

I've inherited an application, which has the following hierarchy of web.config.

*enter image description here*

The middle word corresponds to the DropDownList values of Solution Configurations in Standard toolbar.

I've asked around but didn't find any useful information about what this methodology is called or where I can get more information about this.

Please let me know or point me to a resource which could explain this in a little more detail as it appears to be a useful architectural aspect.

Thanks all.

Upvotes: 0

Views: 56

Answers (2)

Reda
Reda

Reputation: 2289

In Visual Studio 2010 and above, you have the ability to apply a transformation on web.config depending on the build configuration. Have a look at this:

http://vishaljoshi.blogspot.co.uk/2009/03/web-deployment-webconfig-transformation_23.html#!/2009/03/web-deployment-webconfig-transformation_23.html

Upvotes: 1

Daniel A. White
Daniel A. White

Reputation: 191037

These are a VS2010+ feature called config transforms. You can read about them here.

http://msdn.microsoft.com/en-us/library/dd465318(v=vs.100).aspx

Upvotes: 1

Related Questions