使用Visual Studio 2015的Excel 2010 VSTO [英] Excel 2010 VSTO with Visual Studio 2015

查看:507
本文介绍了使用Visual Studio 2015的Excel 2010 VSTO的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在尝试将旧的VS2010项目迁移到新的VS2015环境中。此项目是Excel 2010工作簿项目(目前它还不是2010年的工作簿,我的客户未计划在未来几个月内升级Office)。该项目是正确导入
并正确迁移到.Net 4(在VS2010下为.Net 3.5)。但我们尝试构建它时收到以下错误:<<

I'm trying to migrate an old VS2010 project to m'y new VS2015 environment. This project is an Excel 2010 workbook project (it has not remains a 2010 workbook for the moment, my customer does not plan an upgrade of Office in coming months). The project is imported correctly and migrated correctly to .Net 4 (was .Net 3.5 under VS2010). But we I try to build it I receive the following error : <<

"SetInclusionListEntry""任务意外失败。

System.IO.FileNotFoundException:无法加载文件或程序集'Microsoft.VisualStudio.Tools.Office.Runtime,Version = 10.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a'或其中一个依赖项。系统找不到指定的文件。

文件名:'Microsoft.VisualStudio.Tools.Office.Runtime,Version = 10.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a'

   在Microsoft.VisualStudio.Tools.Office.BuildTasks.SetInclusionListEntry.Execute()

   在Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()

   在Microsoft.Build.BackEnd.TaskBuilder。< ExecuteInstantiatedTask> d__26.MoveNext()

The "SetInclusionListEntry" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Tools.Office.Runtime, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.VisualStudio.Tools.Office.Runtime, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
    at Microsoft.VisualStudio.Tools.Office.BuildTasks.SetInclusionListEntry.Execute()
    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()

推荐答案

嗨皮埃尔,

>>我真的输了,我尝试了一个新的空Excel 2010工作簿(VTSO)项目,但我得到了同样的错误。

>> I'm really lost, I have try with a new empty Excel 2010 Workbook (VTSO) project but I get the same error.

你的新VSTO项目在哪里?您是在VS2010或VS2015下创建的吗?

Where your new VSTO project? Do you create under VS2010 or VS2015?

在VS2015环境中安装VSTO运行时?我不确定你的Office Edition是什么,由于你的Windows 7 32位,我认为你可以安装32位运行时。

Have your installed VSTO runtime in your VS2015 environment? I am not sure what is your Office Edition, due to your Windows 7 32 bits, I think you could install 32-bit runtime.

#Visual Studio Tools for Office Runtime Overview

https://msdn.microsoft.com/en-us/library/Bb608603.aspx

# Visual Studio Tools for Office Runtime Overview
https://msdn.microsoft.com/en-us/library/Bb608603.aspx

如果您安装了正确的VSTO运行时,我建议您检查Windows更新是否有关于VSTO运行时失败的更新。我建议您检查目标平台是否是x86或任何杯子。

If you have installed the right VSTO runtime, I suggest you check the Windows update whether there is update about VSTO runtime failed.I suggest you check the target platform whether it is x86 or any cup.

最好的问候,

Edward


这篇关于使用Visual Studio 2015的Excel 2010 VSTO的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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