SlowCheetah - XML Transforms

Free

This package enables you to transform your app.config or any other XML file based on the build configuration. It also adds additional tooling to help you create XML transforms.. Written by: Sayed Ibrahim Hashimi, Chuck England and Bill Hiebert

(138) Review
Visual Studio
2013, 2012, 2010
Download (213,389)
7/20/2014
2.5.11
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (138)
Q and A (255)
Sign in to write a review
Sort by:

by Dave_MEC | January 19 2016

This is an extension I can't live without. We use this in everyone of our applications. It should be added as part of Visual Studio going forward.

by jmelllo | November 19 2015

by DragonOfId | November 12 2015

This extension has made configuring console programs for multiple environments SO much easier. I have no idea why this functionality isn't native in VS!

by George Birbilis | November 05 2015

see https://visualstudiogallery.msdn.microsoft.com/05bb50e3-c971-4613-9379-acae2cfe6f9e for VS2015

by the real Tim Partridge | October 23 2015

Works as advertised. Downloaded, installed, restarted Visual Studio. Done

by Toomas Talviste | September 23 2015

by Kevin Landymore | September 15 2015

Doesn't work with a build controller. Useless for me sadly, these things should work "out of the box".

by Richard M Lee | September 06 2015

Invaluable! A feature that should definitely be native to visual studio.

by SabbirSpider | August 14 2015

Great Package.It reduces my lot of manual task for my windows application

by sukhdeep.singh1 | July 31 2015

Great plugin, a life saver :)

by ronnotel | July 18 2015

I've been coding large financial trading frameworks in VS/C# since .NET 1.1 days (12/13 years). From this perspective, I can affirmatively state that Slow Cheetah is by far the most productive package that is not currently integrated into the VS tool. I'm walking through a major rollout now involving five different staging environments and over twenty different server configs. Without Slow Cheetah, the other 35 people in the deployment team waiting on my builds would be left high and dry while I tried to manage the configs by hand. VS management - what the *hell* are you thinking? Integrate!

by MGSman123 | June 30 2015

Excellent extension! Definitely essential to my VS toolbelt going forward. Works like a charm in VS2015 too. Just needed to tweak the vsextension xml inside the package :)

by Blue Ajaz | June 03 2015

by dittodhole | April 23 2015

by Tim Long | April 20 2015

5 stars, a genuinely useful tool whenever you need different connection strings, diagnostic logging (etc, etc) configuration for release vs. debug builds.

by MSreenath | March 17 2015

Hi Ibrahim,

Thanks for writing this great tool. I have a question regarding this tool.

Question 1:

How this tool will help if I am creating ONE setup project (msi project) for all my environments and have multiple configuration files ? How can I build and deploy in this case.

As far as I can see this tool works great if you are doing file copy deployment. It just does not make sense to create setup file (read msi) for each environment, if that route I am taking for this


Question 2:

I have 5 different applications (Three Console Applications, Two Windows Service and Two Web)

Can I keep a one master config file and update all these five applications without copying same settings to app.staging.confing likewise to all applications.

Again, it takes lot of time and create this tool, I myself struggled create such tool but it is far from the level you have reached.

Please let me know. I am waiting for your response.

Sree

by jhjhkl758 | March 12 2015

ddd

by Cosmin Vana | January 19 2015

by Victor Lindsey | January 16 2015

I really like this tool for Visual Studio (both 2010 and 2013), and cannot understand Microsoft's reluctance to adopt this as a standard feature for all future versions of the IDE.

I found that for me, using the VSIXinstaller for each edition of Visual Studio I'm using, worked well to get it installed. And I have to make sure that custom XML-styled configuration files are marked with "Copy always" or "Copy if newer".

by 程湘之間 | January 06 2015

It's a very good add-on for Visual Studio.
Maybe making a formal part of Visual Studio will be a good idea.

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


  • What options is available for VS 2013 for Web?
    1 Posts | Last post January 30, 2015
    • Hi Sayed. I have a VS solution containing several projects being worked on by several developers via TFS/GIT mode. We require XML transformations for App.config and Web.config.
      
      I tried installing via the download link above but was told my product is not supported. Is there a different solution for VS 2013 for Web?
  • xmlns="" in WMAppManifest.xml
    1 Posts | Last post November 29, 2014
    • Hi All, 
      I've noticed the the presence of the xmlns="" attribute in the <App> element in the Windows phone WMAppManifest.xml causes the transformations to fail.  When xmlns="" is removed the transformations work but the app will not build and deploy.  Any ideas how I can get round this?
      Thanks,
      Kevin
  • How to Update AppSetting
    1 Posts | Last post November 21, 2014
    • Hi ,i had used this tranform,but i wanna update a appsetting ,how to got it  
  • Could not load file or assembly Microsoft.Web.XmlTransform
    1 Posts | Last post November 07, 2014
    • We want to use SlowCheetah on developers computers without SlowCheetah installing. In this case we made following steps:
      - Copy files SlowCheetah.Transforms.targets, SlowCheetah.Xdt.dll, Microsoft.Web.XmlTransform.dll to specified folder in solution
      - Modify the project file: "<SlowCheetahTargets>$(MSBuildProjectDirectory)\..\SlowCheetah\SlowCheetah.Transforms.targets</SlowCheetahTargets>
      "
      - Reload project
      - Uninstall SlowCheetah extension
      
      We have occured following error after rebuild project:
      Error	68	The "SlowCheetah.Xdt.TransformXml" task failed unexpectedly.
      System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Web.XmlTransform, Version=1.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
      
      How to fix it?
  • Could not open Transform File
    1 Posts | Last post October 22, 2014
    • We have a VS2010 solution that we are converting to VS2012. There is one project that is giving us problems. The project is a ClickOnce WPF application that does not have a web.config file (as expected). It has an app.config file with all of the relevant target transformation files already. When we try to build the project then we get the following error:
      
      Could not open Transform file: Could not find file 'C:\Develop\Source\Rnd\FleetView\Development\FleetView\FleetView\Web.Development.config'.
      
      Any suggestions?  TIA!
      
  • support for Azure package for web roles
    1 Posts | Last post October 08, 2014
    • is there support for Azure web role package. I have a custom xml which needs to change based on build configuration. When i build the solution correct xml transformation happens. But and when i create a package for azure web role the transformation does not happen does SlowCheetah support azure web role package?
  • Build error caused by SlowCheetah v2.5.10
    6 Posts | Last post October 06, 2014
    • I am getting the following build error
      
      Error 28 Could not copy "bin\Debug\app.config" to "C:\Users\ara\AppData\Local\Microsoft\MSBuild\SlowCheetah\v2.5.10\bin\Debug\app.config". Exceeded retry count of 10. Failed.
      
      If I delete all files (except 2 files) in 
      
      C:\Users\ara\AppData\Local\Microsoft\MSBuild\SlowCheetah\v2.5.10
      
      then I can build the project. However, after that I cannot build another project in the same solution
      
      Error 17 Could not copy the file "bin\Debug" to the destination file "C:\Users\ara\AppData\Local\Microsoft\MSBuild\SlowCheetah\v2.5.10\bin\Debug", because the destination is a folder instead of a file. To copy the source file into a folder, consider using the DestinationFolder parameter instead of DestinationFiles.
      
      Why is this happening? It seems like the SlowCheetah is trying to write the projects output to the same directory.
      
    • Can you upgrade the SlowCheetah NuGet package to 2.5.10.3? That should fix things.
    • I updated, but the transformation is not working anymore. The option "Show transform" is not shown.
    • I don't know if this is relevant, when I run install-package SlowCheetah I get the following:
      
      PM> install-package SlowCheetah
      'SlowCheetah 2.5.10.3' already installed.
      [ProjectName] already has a reference to 'SlowCheetah 2.5.10.3'.
      Failed to generate binding redirects for '[ProjectName]'. 'Microsoft.Tools.WindowsInstallerXml.VisualStudio.WixProjectNode' does not contain a definition for 'References'
    • Great tool! One problem though: When you try to transform a root-element Visual Studio tells me: Could not write Destination file: Object reference not set to an instance of an object.
      
      I'm using VS2012 Update 3 and SlowCheetah 2.5.10.3 (NuGet package). An example of my config file (Invoice.Debug.config):
      <?xml version="1.0" encoding="utf-8" ?>
      <InvoicePaymentService xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform" cancelUrl="http://mysite.nl/winkelen/geannuleerd/" returnUrl="http://onderwijsadvies.preview.gengu.nl/winkelen/bedankt/" debug="False" testMode="True" xdt:Transform="Replace">
      </InvoicePaymentService>
      
      I've tested it with multiple config files and settings. Re-created the transforms etc...
    • @W. Paap: 
      When doing a xdt:Transform="Replace" on the root element I get the error "Could not write Destination file: Object reference not set to an instance of an object." too.
      
      When I changed to a xdt:Transform="SetAttributes(...)" I got it to work on the root element too.
      
      Note: I only needed to change the attributes of one element.
      
      Note to editors here: Change my syntax if replying to another user is made in another way.
  • Problem with files copying to 2.5.10 directory
    6 Posts | Last post October 06, 2014
    • Not sure if the installer got botched, but after upgrading to 2.5.10 from 2.5.9.1, our test machine began to copy files into a C:\Users\user.x.name\AppData\Local\Microsoft\MSBuild\SlowCheetah\v2.5.10 directory.  The files it copied were the project files that were being built. I was able to work around the issue by defining the SlowCheetahToolsPath in the SlowCheetah.Transforms.targets file to define the tool path.  Is there something I can do so I don't have to hack the targets file manually in order to get SC to work?
    • Can you try after a VS restart and let me know if you still have issues?
    • After both a VS restart and machine restart, SC is still creating a v2.5.10 directory next to the v1 directory in the user profile\local\microsoft\msbuild\slowcheetah directory.  The contents of the directory seem to be all of the project files for any project that contains transforms. They get copied over each other as a project with a transform is processed.  When I uninstall and reinstall SC, the problem persists.
    • I worked around this problem with a conditional Using in my SC tarets file.  Stick these two lines in @ line 36 in your C:\Users\<you>\AppData\Local\Microsoft\MSBuild\SlowCheetah\v1\SlowCheetah.Transforms.targets file.  The 2nd using will use the correct v1 location.
      
        <UsingTask TaskName="SlowCheetah.Xdt.TransformXml" AssemblyFile="$(sc-MSBuildLibPathLocal)SlowCheetah.Xdt.dll" Condition="Exists('$(sc-MSBuildLibPathLocal)SlowCheetah.Xdt.dll')"/>
        <UsingTask TaskName="SlowCheetah.Xdt.TransformXml" AssemblyFile="SlowCheetah.Xdt.dll" Condition="Exists('SlowCheetah.Xdt.dll')"/>
    • The second UsingTask solved my problem too. Thanks
    • @W. Paap: 
      When doing a xdt:Transform="Replace" on the root element I get the error "Could not write Destination file: Object reference not set to an instance of an object." too.
      
      When I changed to a xdt:Transform="SetAttributes(...)" I got it to work on the root element too.
      
      Note: I only needed to change the attributes of one element.
      
      Note to editors here: Change my syntax if replying to another user is made in another way.
      
  • PropertyGroup location in the project file might break the transformation !!
    2 Posts | Last post September 19, 2014
    • After hours of debugging trying to understand why SlowCheetah stopped working after updating to the last Nuget package I discovered that if the "SlowCheetah" PropertyGroup is at the end of the csproj file, file transformation stops working.
      If I move it to the top, it works.
      
      It stopped working because when I updated the Nuget package, the PropertyGroup has been removed from the csproj file and added back, but at the end.
      
      After more research, it seems that the "SlowCheetah" PropertyGroup must be before the following import (the reason being obvious when you know it ^^) :
      <Import Project="$(SlowCheetahTargets)" Condition="Exists('$(SlowCheetahTargets)')" Label="SlowCheetah" />
      
      Could you do something about that ?
      It's a quite hard issue to identify and a simple package update might break SlowCheetah...
    • Thank you julienN!!! You saved my day. At first I thought that the problem is in the build server, but no, actually it's the problem inside Slow Cheetah. I think it should be fixed ASAP, it's too dangerous to use such tool in production...
  • Rename transformation file
    1 Posts | Last post September 02, 2014
    • Hi,
      I added a transformation file  from right click context menu of my Connections.config file subsequent to previous additions done a few months ago.
      The file added is labeled 'Connections.Profile1.config'.  Right click on the file, but there is no option to rename the file. How do I rename the file to Connections.QA2.config.
      Thanks,
21 - 30 of 255 Items