Configuration Transform


Automatically transform app.config or any other config during build process. Once the transformation is set, it will run on other build machines without the extension.

(50) Review
Visual Studio
2015, 2013, 2012, 2010
Download (45,154)
E-mail Twitter Digg Facebook
Add to favorites
Reviews (50)
Q and A (58)
Sign in to write a review
Sort by:

by dripcode | Tue 8:20 PM

Works in VS2015 but not in VS2012.

by Wilhelm.Medetz | May 18 2016

by Ondřej | May 11 2016

Finally something I needed and which works!

by jeromejourdon | April 20 2016

Great product. Thank you so much.

by eam002 | February 23 2016

Works for me in VS 2015! This tool is a life saver.

by Sundar_Rednus | February 11 2016

by Tobias Gummesson | February 10 2016

The plugin works great in Visual Studio 2013. The big win with this plugin is that the underlying transformation engine is a part of Visual Studio so once the configuration is in place the plugin is not needed for the solution to build.

by Srivastava Alok | October 13 2015

This works nicely in previous for me, but now i have a new requirement.
I need to update the string value on the basis of Build agent.
For example i have transformed the path using config transformation.
<sessionFactory name="quotek" factoryConfigPath="c:\Builds\1\App.nhibernate.config"
xdt:Transform="Replace" xdt:Locator="Match(name)" />
Here 1 is the build agent, previously i only have the 1 build agent so i have added the above path for transformation.Now i have 4-5 build agent, and my App.nhibernate.config file exists under the build agent folder.

How can we dynamically update this path on the basis of Build agent.

by Believe2014 | August 12 2015

Love it!

by James M Bristow II | July 22 2015

This is a good solution that addresses a problem that extends a configuration process implemented by Microsoft for Web Applications. However, there are some problems.
1. The formatting changes during transformation preview, preventing you from getting an accurate overview of the changes performed.
2. The 'Add Config Transforms' right-click menu command appears in Web Applications even though the built-in 'Add Config Transform' command is available. This solution should not apply to Web Applications when there is a default solution in Visual Studio.

by Axiomatic_Rubric | July 06 2015

Works perfectly with no problems. Thank you so much!

by Benjamin Joyce | April 29 2015

by Tom Kuijsten (devkoes) | March 13 2015

Brilliant, works like a charm!

by powerslide | March 09 2015

by Idsa | January 27 2015

by reddykkk | January 15 2015

by alemos | December 24 2014

This has been an awesome timesaver. I commend you on your efforts. Thank you for this extension.

I created a base app.config file and then my environment-based files with only the values that needed changes. The result is perfect, when compiling, the correct file is generated so we can test without commenting and commenting values in each environment.

I think this should be in the next release of Visual Studio.

by JCP-Displayname | November 13 2014

I added a web reference to the project and the Hierarchy of config files went flat and the transforms stopped working. Now the when you click on add config transforms you get a message no changes were made.
Also it is now transforming for the wrong configuration, it is stuck on production.
Also I can no longer view any transformations
Using VS 2010
Is there a fix or workaround for this?

by Hernan Veiras | November 10 2014

Awesome extension!

by Pablo Castilla | November 06 2014

Looks good, but I am not able to add a transform link in VS2013. I want to share the transformation between projects

Is it possible? Can you tell me the steps to do it?

Golan Avraham November 07 2014
| Edit |

it has noting to do with the extension
It's very simple
To create a link to an existing item:
In Solution Explorer, select the target project.
On the Project menu, select Add Existing Item.
In the Add Existing Item dialog box, locate and select the project item you want to link.
From the Open button drop-down list, select Add As Link.

See Linked Configs Step by Step Instructions

1 - 20 of 50 Items   
Sign in to start a discussion

  • VS2012 - Add Transform not working
    2 Posts | Last post Tue 8:18 PM
    • In VS2012.5, right-click on app.config or web.config, the Add/Preview Transform options do nothing. No error message, nothing. Using version 3.0 of the extension. Thanks.
    • Same.  Doesn't seem to be working in VS2012.
  • Removing setting in Debug config
    2 Posts | Last post May 18, 2016
    • I have this in config:
        <level value="ALL" />
        <appender-ref ref="DebugAppender"/>
        <appender-ref ref="SmtpAppender"/>
      I need this in Debug config:
        <level value="ALL" />
        <appender-ref ref="DebugAppender"/>
      What transformation statements should I include and where?
    • <root xmlns:xdt="">
        <appender-ref ref="SmtpAppender" xdt:Locator="Match(ref)" xdt:Transform="Remove"/>
      transformation syntax
  • Multiple *.config files not working
    2 Posts | Last post May 13, 2016
    • I setup appSettings.config and log4net.config in my project with your extension.  I built the application and only one of the *.config files.  I looked at the .csproj file and noticed the extension created a separate <Target name="AfterBuild"> for appSettings.config and log4net.config.  This won't work because MSBuild will only use the last one in the project file.  I had to modify the project file to look like this:
        <Target Name="AfterBuild">
          <!--Generate transformed config in the output directory-->
          <TransformXml Source="appSettings.config" Destination="$(OutputPath)appSettings.config" Transform="appSettings.$(Configuration).config" />
          <TransformXml Source="log4net.config" Destination="$(OutputPath)log4net.config" Transform="log4net.$(Configuration).config" />
    • i have the same problem
  • Carriage returns\line feeds stripped from XML Attribute values during transform
    2 Posts | Last post May 06, 2016
    • If an xml tag attribute includes carriage returns\line feeds, then these are stripped out during transform.
    • I have the same issue.  Does anyone know if this has been addressed at all?  Thanks.
  • Not working when i publish
    1 Posts | Last post May 05, 2016
    • I installed this and setup build tranformations for my entlib.config file.  Locally it seemed to work when i preview the transformation (right click on entlib.Dev.config and select preview config transforms) but when I publish to Dev the transformed entlib.config file is not deployed, instead just the regular entlib.config file is deployed. Am I doing something wrong?
  • Not working when i publish
    1 Posts | Last post May 05, 2016
    • I installed this and setup build tranformations for my entlib.config file.  Locally it seemed to work when i preview the transformation (right click on entlib.Dev.config and select preview config transforms) but when I publish to Dev the transformed entlib.config file is not deployed, instead just the regular entlib.config file is deployed. Am I doing something wrong?
  • app.config with external C# class library for website project
    1 Posts | Last post April 25, 2016
    • Hi Guys!
      Maybe I don't understand well how it works, but I followed all the steps of how using this tool and I'm still not able to make my MVC5 WebApplication having good values from my external C# class library.
      My class library application has app.config (with debug and release childs) and when I build this application, I can see that the *.dll.config has the modified transformations but not my dll (that is copied to my webapplication).
      I want to transform values inside <applicationSettings> for strongly-typed variables, compile this as a DLL that my webapplication can import and use it.
      I only see that DLL is created, but only with the values inside app.config (and not debug or release). Just to mention that I set my solution configurationmananger as Debug for testing the app.debug.config, but did not work on C# class library DLL (MY_APPLICATION.dll) (but work on MY_APPLICATION.dll.config)
  • Visual Studio 2015.2
    1 Posts | Last post April 20, 2016
    • I am trying to use this extension on VS 2015.2, but it is not working. If you would like, I can send you a demo project.
  • "Preview Config Transforms" only works for web.config file?
    5 Posts | Last post March 09, 2016
    • I have installed this extension on VS2013 Update 4 and our project has separated out AppSettings from Web.config file into its own file called AppSettings.config.  It is fine to add Config Transform files.  However, I cannot get a preview screen on the AppSettings transform files at all.  Web.config preview is working as it should though.  Is this the intended behaviour?  Otherwise, how to get previews on any config files apart from web.config file?
    • The extension is not targeting web development.
      Try to wrap a demo project and send me a link to share, I'll see if I can do something to help you.
    • I've been having the same issue today and I have it narrow down to the location of the config file. If the appSettings.config is in a subfolder the preview doesn't work, however if I move the file to the root of the project then preview works. I've checked your demo solution and all subfolder examples have a wrapping project for the config files. SlowCheetah supports transformations on any subfolders within a project.
    • Thanks for the quick response Golan. Please find the link to a sample MVC project created with two test config files as below. 
      Test config files:
      Config/AppSettings.config - in a subfolder where preview doesn't work
      Connection.config - in project's root folder and preview works (as what shawjh mentioned).
    • I have the same issues as others, and I also see that preview is not working in the demo project once you move a file out of root. vs pro 2015
  • Support for Website Project
    1 Posts | Last post March 01, 2016
    • This is a really useful tool. We have some project that are Website Projects and not Web Applications, it would be really good if we could do transformation in Website Projects.
1 - 10 of 58 Items