Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Slow cheetah Add Transform does not appear

I want to use Slow Cheetah for transform .config file. Currently I am using Visual Studio 2017 and for this I have installed Slow Cheetah 2.5.48 from nuget but 'Add Transform' does not appear when I right-click on config file.

like image 957
Swati Gupta Avatar asked Jun 16 '17 06:06

Swati Gupta


2 Answers

The issue is, only adding nugget would not suffice. You need to install slowcheetah from visual studio marketplace. Following are the steps:

  1. Install SlowCheetah from Tools > Extensions and Updates
  2. Restart VS, allowing for the VSIX installer to run
  3. Create new C# App (.NET Framework). (In my case, it started to work on existing app also.)

GitHub Reference

like image 95
Himanshu Singla Avatar answered Oct 18 '22 00:10

Himanshu Singla


As a work-around you could do this by hand. Make a copy in the _Solution Explorer* of your Web.config and rename it to Web.Debug.config or whatever you like.

Unload the project and then Edit the project. Find the ItemGroup element that contains your newly created config file and add the <DependentUpon>Web.config</DependentUpon> element there, like so:

enter image description here

After that, it will look like this in the Solution Explorer:

enter image description here

Now you can edit your newly added config file with the required transformations.

like image 6
Emiel Koning Avatar answered Oct 18 '22 00:10

Emiel Koning