2010-08-18 88 views
2

我有這樣的問題:問題裝載組件文件

Error 23 The "AssemblyInfo" task could not be loaded from the assembly AssemblyInfoTask, Version=1.0.51130.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35. Could not load file or assembly 'AssemblyInfoTask, Version=1.0.51130.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, and that the assembly and all its dependencies are available. CustomActions 

任何建議嗎?

更新#1在我的電腦中從SVN複製項目後出現問題。項目是在VS 2005編寫的。我已經安裝VS 2005.

更新#2安裝SP1 for VS2005,它仍然不工作。

更新#3我已經改變了線在項目文件中像這樣**

<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 

<!-- <Import Project="$(SolutionDir)eService.VersionNumber.targets" /> 
--> 

,並開始工作。所以,正如我所看到的,問題在於eService.VersionNumber.targets文件。所有工作都在另一臺電腦上,並存在文件。

+0

你試過乾淨和重建? – w69rdy 2010-08-18 14:25:56

+0

您是否部署了AssemblyInfoTask程序集?這是在調試或發佈代碼,從Visual Studio或客戶機上運行? – 2010-08-18 14:26:06

+0

現在我正在爲VS 2005安裝SP1。之後,我會嘗試你的建議。 – Sergii 2010-08-18 14:28:08

回答

0

嘗試轉到Visual Studio中的解決方案資源管理器,然後打開參考文件夾。
在那裏你應該找到AssemblyInfoTask旁邊的警告標誌。
單擊AssemblyInfoTask參考並檢查屬性窗口。在那裏你可以找到Visual Studio查找程序集的路徑。
要麼確保AssemblyInfoTask程序集是Visual Studio正在查找的位置,要麼刪除引用並使用新的正確路徑再次添加引用。
如果這是一個項目引用,您需要確保該項目在您的解決方案中,並且構建順序是正確的。