生成错误+为excel 2010创建VSTO加载项 [英] Build Error + Creating VSTO addin for excel 2010

查看:112
本文介绍了生成错误+为excel 2010创建VSTO加载项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用VS 2010创建一个Excel加载项.当我创建一个新项目Excel 2010加载项时,尝试编译该解决方案.我看到一条错误消息.

I try to create an excel add-in using VS 2010. When I create a new project Excel 2010 Addin, and try to compile the solution. I get an error which says.

'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工具,用于Office运行时.但是我找不到程序集'Microsoft.VisualStudio.Tools.Office.BuildTasks,

I downloaded an installed the VS 2010 tools for office runtime. But I cannot locate the assembly 'Microsoft.VisualStudio.Tools.Office.BuildTasks,

我该如何进行.谁能帮忙..

How do I proceed. Could anyone help..

推荐答案

这看起来像

This looks like a known issue sourced from MSDN forums - you just need to update your Microsoft.VisualStudio.Tools.Office.targets file to point to version 11.0.0.0 instead of version 10.0.0.0.

对于遇到此问题的用户,请转到 C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ v10.0 \ OfficeTools ,然后打开 Microsoft.VisualStudio.Tools .Office.targets 文件.

将所有 10.0.0.0 替换为 11.0.0.0 .

For those who encounter this problem, go to C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\OfficeTools and open the Microsoft.VisualStudio.Tools.Office.targets file.

Replace all 10.0.0.0 with 11.0.0.0.

这篇关于生成错误+为excel 2010创建VSTO加载项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆