Slowcheetah installed but there's no transform

2019-02-24 09:15发布

问题:

I have a .NET 4.5 project with MVC 5 and EF 6, in Visual Studio 2013. I want to have transforms for app.config.

I've installed the SlowCheetah project via NuGet, and (supposedly)[https://visualstudiogallery.msdn.microsoft.com/69023d00-a4f9-4a34-a6cd-7e854ba318b5] now I should be able to right-click on App.config and see the option Add Transform. But I don't.

Does anyone know what are the possible reasons for this?

I've checked that the package is installed in both projects in my solution, restarted, rebuilt, etc.

回答1:

I had to do the following before it worked:

  1. Install the package from their site instead of from NuGet
  2. Restart VS

Then the Add Transform option started showing up in the drop-down menu.



回答2:

The above answers did not work for me as it supports only VS2015. but I found the solution for my VS2013.

  1. You need to download it here and install it
  2. Restart VS


回答3:

My conditions:

  • Visual Studio Professional 2017
  • SlowCheetah, v 2.5.48 installed in a C# project
  • When I selected [Right-Click]-->App.config, there was no Add Transform option

My solution:

  • Downloaded and ran this: https://marketplace.visualstudio.com/items?itemName=WillBuikMSFT.SlowCheetah-XMLTransforms

  • Restarted VS 2017 and [Right-Click]--> App.config displayed the Add Transform option