【发布时间】:2015-06-15 17:49:26
【问题描述】:
我有 VS 2010、2012 和 2013。我从 svn 获得了一个现有项目,所以它以前从未在我的机器上。当我尝试编译时,出现以下错误
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.
我发现有几个帖子提到去
C:\程序文件 (x86)\MSBuild\Microsoft\VisualStudio\v10.0\OfficeTools
,打开 Microsoft.VisualStudio.Tools.Office.targets 并用我所做的 12.0.0.0 替换所有 10.0.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 中删除并重新添加引用?
-
你试过改成11.0.0.0吗?
-
是的,我也试过了。没有帮助。看起来一些 Visual Studio 更新破坏了这个“FindRibbons”任务(错误的程序集版本或参考 - 不知道)。尝试卸载所有版本的 Visual Studio,然后按升序重新安装它们(2013 和 Update4)。为我工作。