Home > .NETdev > .NET Configuration Transformations

.NET Configuration Transformations

I’m playing around with XML transformations today and needed a refresher.  This is a pretty good explanation straight from the horse’s mouth.

https://msdn.microsoft.com/en-us/library/dd465326(v=vs.110).aspx

I’m deploying to an Azure website, in which case there are ways to keep connection strings and app settings unique to each slot of your website.  https://azure.microsoft.com/en-us/blog/windows-azure-web-sites-how-application-strings-and-connection-strings-work/

However, the setting I need to tweak for production isn’t an “app setting”, but rather a servicemodel client endpoint, which apparently has to be done the hard way. 😦

Categories: .NETdev
  1. 2016.04.06 at 14:33

    Note: When your transformation is working, you can see the output in VS after a build here: \obj\Release\TransformWebConfig\transformed

  2. 2016.04.08 at 10:12

    This post shows the syntax for adding a dependent configuration specific config file.

    http://www.olegsych.com/2010/12/config-file-transformation/

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: