-->

生成错误+创建VSTO加载项为2010的Excel(Build Error + Creating V

2019-09-01 23:37发布

我尝试创建一个Excel中添加使用VS 2010年当我创建一个新项目的Excel 2010加载项,并尝试编译解决方案。 我得到它说的错误。

'Error  1   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.   DemoExcelAddIn1

我下载了一个安装了VS 2010 Tools for Office中运行。 但我无法找到程序集“Microsoft.VisualStudio.Tools.Office.BuildTasks,

我该如何继续。 任何人都可以帮助..

Answer 1:

这看起来像一个从MSDN论坛来源已知的问题 -你只需要更新您的Microsoft.VisualStudio.Tools.Office.targets文件以指向版本11.0.0.0而非版本10.0.0.0

更新的MSBuild目标文件

对于那些谁遇到这样的问题,进入C:\ Program Files文件(x86)的\的MSBuild \微软\ VisualStudio的\ V10.0 \ OfficeTools并打开Microsoft.VisualStudio.Tools.Office.targets文件。

11.0.0.0替换所有10.0.0.0。



Answer 2:

安装VS2010 SP1,应该可以解决你的问题。

我有这个问题,以及,我再装VS2010 SP1和VS2013 SP4。

干杯!



Answer 3:

我们VS2013安装在构建奴隶,所以我们通过以下操作解决了该问题:进入C:\ Program Files文件(x86)的\的MSBuild \微软\ VisualStudio的\ 11.0 \ OfficeTools和开放theMicrosoft.VisualStudio.Tools.Office .targets文件。

与12.0.0.0替换所有11.0.0.0。



文章来源: Build Error + Creating VSTO addin for excel 2010