2010-07-01 87 views
0

我已經編寫了一個用於分析代碼覆蓋率結果的自定義任務。在構建整個解決方案時,出現以下錯誤。加載Microsoft.VisualStudio.Coverage.Analysis時msbuild任務錯誤

 
error MSB4018: System.IO.FileNotFoundException: Could not load file or 
assembly 'Microsoft.VisualStudio.Coverage.Analysis, Version=9.0.0.0, Culture=neutral, 
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find 
the file specified. 

我檢查了在構建過程中指定的路徑和dll的位置是正確的。然而,我得到一個FileNotFoundException。
我錯過了什麼嗎?
謝謝...

回答

0

我設法解決了這個問題。我必須使用gacutil.exe將程序集添加到GAC。一旦裝配被添加,錯誤消失。

0

這可能聽起來像一個愚蠢的建議,但你檢查你運行Visual Studio 200X Command Prompt而不是Visual Studio 200X x64 Cross Tools Command Prompt

+0

我剛剛確認了它。我只運行200X命令提示符。 – Sidd 2010-07-01 23:12:50