The “SlowCheetah.Xdt.TransformXml” task could not

2019-03-08 23:28发布

After installing Slow Cheeath (v. 2.5.10.3) to two projects in my solution, I am receiving the following error:

"The "SlowCheetah.Xdt.TransformXml" task could not be loaded from the assembly C:\Users
\User\AppData\Local\Microsoft\MSBuild\SlowCheetah\v2.5.10.2\SlowCheetah.Xdt.dll. Could 
not load file or assembly 'file:///C:\Users\User\AppData\Local\Microsoft\MSBuild
\SlowCheetah\v2.5.10.2\SlowCheetah.Xdt.dll' or one of its dependencies. The system cannot 
find the file specified. Confirm that the <UsingTask> declaration is correct, that the 
assembly and all its dependencies are available, and that the task contains a public 
class that implements Microsoft.Build.Framework.ITask.  ISA.IMPD.FalseAlarm.Web.Portal"

I have removed both projects in their entirety (along with Slow Cheetah), re-installed both projects (along with Slow Cheetah), and Rebuilt the solution to no avail. Can anyone help with this type of error?

12条回答
地球回转人心会变
2楼-- · 2019-03-08 23:58

delete

  AppData\Local\Microsoft\MSBuild\SlowCheetah\v1 
查看更多
狗以群分
3楼-- · 2019-03-09 00:01

In my case the error occured while compiling a web project. The folder

%userprofile%\AppData\Local\Microsoft\MSBuild\SlowCheetah\v2.5.10.2

was empty. All the SlowCheetah components were in SlowCheetah\v1 folder instead. I've copied all files from V1 folder to v2.5.10.2 and everything compiled and transformed fine. To make non web projects compile, I also had to delete V1 folder as suggested by Whoever in this thread.

This was a brand new installation of the SlowCheetah Extension and I did not expect the v1 folder to exist at all. I believe this was a bug in the extension installation for Visual Studio 2012.

查看更多
\"骚年 ilove
4楼-- · 2019-03-09 00:02

This problem went away for me after using the preview transformation feature in the context menu. Originally suggested here.

FYI this was on VS 2010 Premium.

查看更多
We Are One
5楼-- · 2019-03-09 00:06

I have deleted the old files in C:\Users\\AppData\Local\Microsoft\MSBuild\SlowCheetah\v1. I also needed to upgrade Visual Studio 2012 to update 4 to make it work.

查看更多
你好瞎i
6楼-- · 2019-03-09 00:08

I had the same problem in Visual Studio 2013. Just install SlowCheetah NuGet package:

https://www.nuget.org/packages/SlowCheetah

查看更多
一夜七次
7楼-- · 2019-03-09 00:09

I resolved it like this:

  1. Uninstall slowcheetah => Tools>Extensions and Updates
  2. click OK when VS asks you to restart VS.
  3. in "C:\Users\AppData\Local\Microsoft\MSBuild\SlowCheetah" remove the 'v1' folder (which windows automatically creates when restarting your VS) (here be dragons..)
  4. reïnstall slowcheetah (see step 1) => a new folder v2.5.10.2 will be created.
  5. Again, click OK when he asks to restart
  6. Build your solution

Regards,

Peter

查看更多
登录 后发表回答