SlowCheetah is a great extension for Visual Studio desktop applications. In short, it enables configuration transforms for desktop application exactly like web applications. Unfortunately, the extension has not been updated to support Visual Studio 2015 RC but the Nuget package works. Here are the changes I had to make to the project XML to get SlowCheetah in VS 2015 RC working.

Lead-In

At the time of writing this article, the SlowCheetah Visual Studio Extension is not supported in VS 2015 RC. According to this Visual Studio User Voice forum post, the Visual Studio Team plans to update and support the SlowCheetah extension in VS 2015.

In VS 2015 RC

It’s helpful to know you don’t need the extension to use SlowCheetah. By adding the Nuget package you can transform your configuration files with your local build or continuous build process, you just need to manually configure your project XML.

Side Note

I am not suggesting you stop using the extension. The extension (in earlier versions of Visual Studio) adds a context menu option, “Add Transform”, which adds a transform configuration file and modifies the project XML automatically. Below are the steps I followed to manually update the project since I could not use the extension.

SlowCheetah Configuration

Fortunately, the SlowCheetah Nuget package automatically modifies the project when it’s added. It adds a SlowCheetah.Transforms.targets file,

SlowCheeta Property Group
SlowCheetah property group added by the SlowCheetah Nuget package.

a SlowCheetah property group,

Import Tag for SlowCheetah Targets
Import tag for the SlowCheetah targets added by the SlowCheetah Nuget package.

and an import tag for the SlowCheetah targets.

I manually added two app.config files, one for each build configuration. I unloaded and opened the project file. I modified the XML by adding a tag to make the two new app.configs dependent upon the original. I also added a tag to all 3 app.config files to transform on build.

Dependent Upon and Transform On Build tags for SlowCheetah build configs
Added the Dependent Upon and Transform On Build tags to the configs to enable SlowCheetah transforms.

I posted the code in a Github Repository if you’re curious.

What’s been your experience with SlowCheetah on VS 2015 RC?