2013-12-12 82 views
3

在Visual Studio 2012中,我安裝了慢速Cheetah 2.5.10版。在編譯使用慢速獵豹的應用,構建失敗,出現以下錯誤:緩慢的獵豹變換失敗

Error 1 The "SlowCheetah.Xdt.TransformXml" task could not be loaded from the assembly C:\Users\MyActiveDirectoryAccount\AppData\Local\Microsoft\MSBuild\SlowCheetah\v2.5.10\SlowCheetah.Xdt.dll. Could not load file or assembly 'file:///C:\Users\MyActiveDirectoryAccount\AppData\Local\Microsoft\MSBuild\SlowCheetah\v2.5.10\SlowCheetah.Xdt.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the 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. C:\Users\MyActiveDirectoryAccount\AppData\Local\Microsoft\MSBuild\SlowCheetah\v1\SlowCheetah.Transforms.targets

當導航到該目錄,我可以看到慢獵豹文件,但SlowCheetah.Xdt.dll文件丟失。

C:\用戶\ MyActiveDirectoryAccount \應用程序數據\本地\微軟\的MSBuild \ SlowCheetah \ v2.5.10 \

以分流這一點,我已經:

  1. 重新引導
  2. 取消安裝和重新安裝慢獵豹
  3. 清潔和重建

無固定的問題以上的。任何指導將不勝感激。謝謝!

+0

看到這個問題http://stackoverflow.com/questions/19936476/the-slowcheetah-xdt-transformxml-task-could-not-be-loaded-from-the-assembly – Amitd

回答

4

答案是在Q & A's之一(由zendu)

Copy the files from

%APPDATA%..\Local\Microsoft\MSBuild\SlowCheetah\v1.

to

%APPDATA%..\Local\Microsoft\MSBuild\SlowCheetah\v2.5.10.

List of files:
Install-Manifest.xml
Microsoft.Web.XmlTransform.dll
SlowCheetah.Tasks.dll
SlowCheetah.Transforms.targets
SlowCheetah.Xdt.dll

Source

另請參閱此相關的問題
The "SlowCheetah.Xdt.TransformXml" task could not be loaded from the assembly

+1

謝謝@Amitd 。你提供的鏈接導致這一點,這實際上解決了我的問題。 https://github.com/sayedihashimi/slow-cheetah/issues/114 –

+2

簡短回答:如果刪除userDir \ AppData \ Local \ Microsoft \ MSBuild \ SlowCheetah \ v1目錄和v2.5.10目錄,然後重建,所有內容工作正常。 –

+0

很高興它幫助:) – Amitd

0

我曾與Visual Studio 2010中同樣的問題。我只需安裝SlowCheetah nuget包(安裝包SlowCheetah),然後構建成功。 nuget包在您的解決方案中正確設置了slowcheetah任務。

SlowCheetah nuget Package