安装了多个版本office的VSTO项目 [英] VSTO project with multiple versions of office installed
问题描述
我目前安装了 office 2010,并且正在尝试帮助仍在使用 2007 和 VSTO 解决方案的同事.这变得一团糟,因为我的 Visual Studio 副本颠簸了项目文件,将它们更新为指向 O2010 dll.如果我要在 2010 旁边安装 office 2007,我是否能够在没有升级向导破坏所有内容的情况下打开解决方案,或者是我唯一的选择很重要 解决方案的架构变化或恢复到 O2007,直到我的雇主将 O2010 设为新标准.
I currently have office 2010 installed, and am trying to assist a coworker who's still using 2007 with VSTO solution. This is turning into a mess since my copy of visual studio thrashes the project files updating them to point to the O2010 dlls. If I were to install office 2007 beside 2010 would I be able to open the solution without the upgrade wizard mangling everything, or are my only options making significant architectural changes to the solution or reverting to O2007 until my employer makes O2010 the new standard.
推荐答案
您无需安装 Office 2007 即可创建 Office 2007 加载项.我认为这里的问题是您缺少正确的 VSTO 组件.
You shouldn't need to install Office 2007 to create Office 2007 add-ins. I think the problem here is that you're missing the proper VSTO components.
确保您已安装以下内容:
Make sure you've installed the following:
- Office 中的所有 .NET 和开发人员工具(来自 Office 2010 安装程序 -- 不需要 Office 2007 安装程序)
- 来自 Visual Studio 的 Microsoft Office 开发人员工具(来自 VS 安装程序)
- Microsoft Office 2007 主要互操作程序集立>
- Microsoft Visual Studio 2010 Office 运行时工具
- 适用于 Microsoft Office 系统的 Microsoft Visual Studio 工具(3.0 版)运行时)
如果其中任何一个已经安装,那么我建议修复它们的安装.
If any of these are already installed then I recommend repairing their installations.
这篇关于安装了多个版本office的VSTO项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!