Adding transformations to your web.config

Transformations in asp.net is an easy way to automatically set your configurations in different environments. An example of this would be when we want our connection strings, usernames, passwords, proxies, etc. to be different in our development environment from our production environment. Since the web.config file is written in xml, we use XML Document-Transform(xdt) to make the transformations. In your VisualStudio project every web.config has a Web.Debug.config and Web.Release.config. If you have never used transformations before, you probably don't know what these files are for....

June 15, 2015 · 1 min · 194 words · Fahad