我有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