我有VS 2010,2012和2013.我從svn得到了一個現有的項目,所以它從來沒有在我的機器上。當我試圖編譯,我得到了以下錯誤與VS 2010和FindRibbons構建錯誤
The "FindRibbons" task could not be loaded from the assembly
'Microsoft.VisualStudio.Tools.Office.BuildTasks,
Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. 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.
我發現了幾個帖子mentionning去
C:\ Program Files文件 (86)\的MSBuild \微軟\ VisualStudio的\ V10。 0 \ OfficeTools
,打開Microsoft.VisualStudio.Tools.Office.targets 與12.0.0.0,我做到了
全部更換10.0.0.但隨後得到了以下錯誤
The "FindRibbons" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.
您可以從Visual Studio中刪除並重新添加引用嗎? – johnjps111 2015-06-10 21:47:02
你試過換成11.0.0.0嗎? – 2015-06-11 09:14:14
是的,我也試過了。沒有幫助。它看起來像一些Visual Studio更新打破了這個「FindRibbons」任務(錯誤的彙編版本或參考 - 不知道)。嘗試卸載Visual Studio的所有版本,然後按照升序安裝它們(2013 Update4)。爲我工作。 – Nikolay 2015-06-11 09:21:40