Configuration Transform

Free

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.

(47) Review
Visual Studio
2015, 2013, 2012, 2010
Download (43,419)
3/4/2016
3.0
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (47)
Q and A (53)
Sign in to write a review
Sort by:

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 |
Delete

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

by mindriven | October 14 2014

by tanaka_733 | October 09 2014

This is a great tool!
It is useful because configuration transform by this extension does not depend this extension itself because it edits csproj file.

It is more better to improve config preview because preview result does not contain line break.

by Mike Calvin | October 09 2014

Works Great. I was able to add app.config transformations and preview them in less than 5 min. Perfect.

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


  • app.config with external C# class library for website project
    1 Posts | Last post Mon 11:37 PM
    • 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)
      
      Thanks
  • 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.
      
      THANKS
  • "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. 
      
      Link: https://onedrive.live.com/redir?resid=B1421323207660F7!108&authkey=!AL1FWqpDX3ixdgw&ithint=file%2czip
      
      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.
      
      Thanks
      
      Darren
  • Bug in v2.2?
    2 Posts | Last post February 10, 2016
    • I just updated to 2.2 and now VS2012 throws an error on every start that the module can't be loaded properly.
      
      ActivityLog.xml: 
      "CreateInstance failed for package [GolanAvraham.ConfigurationTransform.ConfigurationTransformPackage, ConfigurationTransform, Version=1.0.5883.21410, Culture=neutral, PublicKeyToken=d5164e1f8f3e4ea2]
      
      Could not load file or assembly 'Microsoft.VisualStudio.Shell.10.0, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified."
      
      Since the "Microsoft.VisualStudio.Shell.10.0, Version=12.0.0.0" is introduced as part of VS2013, so it shouldn't depend on this when running VS2012. Any suggestions or links to download v2.1 of the extension?
    • Just had an idea for a temporary fix. I added a binding redirect for v12 to v11 in the devenv.exe.config
      
      <assemblyIdentity name="Microsoft.VisualStudio.Shell.10.0" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
      <bindingRedirect oldVersion="12.0.0.0" newVersion="11.0.0.0"/>
  • Getting Error
    2 Posts | Last post February 09, 2016
    • Can not install on Visual Studio 2013 for Web Express Update5 
      
      Searching for applicable products...
      10/5/2015 11:01:16 PM - Found installed product - Microsoft Visual Studio 2010 Shell - Integrated Mode
      - Found installed product - Microsoft Visual Studio Express 2013 for Web
       - Found installed product - Global Location
       - Found installed product - ssms
       - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
         at VSIXInstaller.App.InitializeInstall()
         at System.Threading.Tasks.Task.InnerInvoke()
         at System.Threading.Tasks.Task.Execute()
      
      Is there any way to install on there ?
    • Having the same problem :(
  • VS2015
    13 Posts | Last post February 03, 2016
    • Will you support VS2015 please?
    • Yes, please do! Once this and VSCommands is out for 2015, I'll be off 2013 completely.  
    • Also need for 2015!
    • SlowCheetah has a preview out for VS 2015
      
      https://visualstudiogallery.msdn.microsoft.com/05bb50e3-c971-4613-9379-acae2cfe6f9e
    • yes, pls do support VS2015.
    • This works for VS2015 until they properly update the project: https://dl.dropboxusercontent.com/u/24247931/ConfigurationTransform.vsix
    • When will VS2015 be supported? 
    • I'd love to use this excellent extension in VS2015. Hopefully it'll be supported soon.
    • If you want to use this with Visual Studio 2015 but don't trust random links posted on the internet (@IdleMonkeys: no offense and thank you for your link), here's how you can install it:
      
      1. Download the vsix.
      2. Open the vsix as a zip (e.g. rename the extension to zip and open it, or right-click and open it with your zip application)
      3. Open the extension.vsixmanifest in a text editor and add the following XML under the SupportedProducts-element:
      
        <VisualStudio Version="14.0">
          <Edition>Ultimate</Edition>
          <Edition>Premium</Edition>
          <Edition>Pro</Edition>
        </VisualStudio>
      
      4. Save the manifest.
      5. Run the vsix to install the extension.
    • Bloodbuzz Entertainment - this allows the extension to install (although I changed Ultimate to Enterprise because 2015 rebranded it), but does not add the Preview Transform shortcut in Solution Explorer, unless you have additional steps that made this work for you...
    • Thanks for the info Bloodbuzz Entertainment, that worked for me. MattCom, I'm running Enterprise Update 1 and I was able to get the right-click piece working for me. The only other change I made to the manifest file was this:
      
      <SupportedFrameworkRuntimeEdition MinVersion="4.0" MaxVersion="4.5.2" />
      
      Hope that helps.
    • Unique-Display-Name thanks for that, it gets installed but its disabled in Visual Studio 2015 Professional. Its somehow missing the digital signature.
    • Okay found a workaround.
      
      After installing it as per BloodBuzz -> MattCom -> Unique-Display-Name, I closed visual studio 2015 and installed this "cleaner" of sorts:
      
      https://visualstudiogallery.msdn.microsoft.com/22b94661-70c7-4a93-9ca3-8b6dd45f47cd
      
      Then start visual studio with no soltuions in Admin mode, "Clear" the MEF cache as per instructions in link, then it will restart VS and it got the context-menu showing for now. :-)
      
      Thanks for all the help by others here.
      
      Cheers.
  • TFS Build
    4 Posts | Last post January 20, 2016
    • Has anyone been able to get this working with TFS Build? We're using TFS 2015 and it doesn't seem to be transforming the config files I created. When I go to the drop folder where build drops the files, the config files created with this tool are not transformed. The web.config, which has the transform files out of the box, is transformed successfully. Any advice on this would be much appreciated.
    • We are having the same issue.
    • I think found what appears to be an issue with how transforms for *custom* configs (like nlog.config) are working. If you look in your .csproj file, towards the bottom you'll see a AfterCompile target that does the nlog.config transform. The problem is that it creates a file named $(TargetFileName).config. If your application is named WebApp1, the output of the nlog transform will actually be in WebApp1.config. 
      
      There is also an AfterPublish target that might have the same problem, but I have not tested that section yet.
    • In looking closer at a different project, I found out that my team is using SlowCheetah, while I was not. I think I'll switch everything to SlowCheetah as it doesn't seem to have this issue.
  • ClickOnce Publish Location?
    1 Posts | Last post August 28, 2015
    • Is there a way to alter the publish location for a ClickOnce app via transform? As an example, I'd like to have Debug published to \\Somewhere\App and Release get published to \\SomewhereElse\App
      
      ...thoughts?
  • VS 2013 Update 4
    8 Posts | Last post July 14, 2015
    • I have tested the extension with VS 2013 Update 4
      All works preview/transform/linked transform
      Make sure you read the instructions especially when using linked config
      
      Demo solution:
      https://onedrive.live.com/redir?resid=C235883F28DBC48C!139&authkey=!AE6qGnmd99lwsdg&ithint=folder%2c
      
    • I'm testing out version 2.1 with VS 2013 Update 4 and I get the "different computed hash than specified in manifest" error when we try to install the app using ClickOnce.
      
      This is the same error that bluebunny was receiving in his post below.  We are currently using VS 2012 Update 4 and version 1.4 of your tool and that works fine.  I'm hesitant to update to 2.1 in case it breaks as well in VS 2012.
      
      Any ideas on how we can resolve this issue in VS 2013?  We'd like to upgrade but I won't do it if we can't use your fantastic tool.  It is possible to put version 1.4 out somewhere for download so I can try that in VS 2013?  Thanks!
    • My previous testing seemed to suggest VS 2012 Update 4 would work with version 2.1 (for ClickOnce).  (Take an system image backup before applying in case it does not!)
      
      Sadly VS 2013 Update 4 does not work with version 2.1 (for ClickOnce).
      
      This post from the VS Team has given my hope that the SlowCheetah will be updated and fully supported by VS 2015.
      
      http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2043217-support-web-config-style-transforms-on-any-file-in
      
    • Here is a link to the older version 1.4.
      
      https://onedrive.live.com/redir?resid=a18751aace9ac7a7!256350&authkey=!AMvlmhaMD_hMNfc&ithint=file%2cvsix
      
    • Golan, I downloaded you demo solution.  It does indeed work with VS 2013 Update 4 as a click once deployment!  Which got me wondering what is different about my projects.  The obvious difference was mine are all Visual Basic not C#.  
      
      Please download my demo and attempt a click once deployment.  You should experience the "different computed hash than specified in manifest" error.
      
      https://onedrive.live.com/redir?resid=a18751aace9ac7a7!256351&authkey=!AHYJz-oi1vcbnas&ithint=folder%2csln
      
      Hopefully this leads to a fix.  Would love for this to be working again with VS 2013 Update 4.
    • VS 2013 Update 4
      
      Upgraded to 2.1 and I'm now stuck in broken-land too. Thanks bluebunny for the link to the older version.
      
      I hope you have this fixed soon, as the preview feature saves a lot of time.
    • Forgot to mention I'm using VB.NET as well.
      
      Disappointed to say that reverting back to version 1.4 didn't work for me; my ClickOnce install is still broken in the same way as with 2.1:
      
      * Activation of C:\Users\***\PD-CLU.appref-ms| resulted in exception. Following failure messages were detected:
          + File, PD-CLU.exe.config, has a different computed hash than specified in manifest.
      
      Come on, Golan - people love this thing, if you could just fix it!
    • Yeah, reverting back to version 1.4 won't fix it if using VB.NET and VS 2013 Update 4.  You have to downgrade to VS 2013 Update 3 as well. :(
      
      Hoping VS 2015 comes out with this feature built-in.
1 - 10 of 53 Items