Posts

Showing posts from January, 2018

Web Config Transformations

Web config transformations allow for developers to cut down on duplicated XML in configuration files by providing a way to change only the non-static values for the appropriate environment. A value that would be expected to change between environments is something like a connection string, whereas library versions would remain the same for any deployment of an application. Transformations can be tricky: often times developers do not have the required access to view the transformed version of the file on a production environment. The best way to configure your transformations is to use a site like the one below which uses the same transformation functions as the build and shows you the output. https://webconfigtransformationtester.apphb.com/ https://msdn.microsoft.com/en-us/library/dd465326(v=vs.110).aspx The second link above is to Microsoft's documentation of the possible transforms. The key takeaway from this reference is the purpose of Transform and Locator . Transform