【问题标题】:VSTO: Visual Studio 2005 with Office 2010 64VSTO:Visual Studio 2005 和 Office 2010 64
【发布时间】:2012-09-28 21:25:19
【问题描述】:

我正在使用 Visual Studio 2005 开发 Office 2003 插件。但在卸载 Office 2003 和安装 Office 2010 x64 后,我的项目停止工作。

出现一些错误:

Error   7   The type or namespace name 'IRibbonControl' could not be found (are you missing a using directive or an assembly reference?)    x.cs    83  45  x
Error   5   The type or namespace name 'IRibbonUI' could not be found (are you missing a using directive or an assembly reference?) x.cs    358 38  x
Error   3   The type or namespace name 'IRibbonExtensibility' does not exist in the namespace 'Microsoft.Office.Core' (are you missing an assembly reference?)  x.cs    45  43  x

有什么方法可以让我的 AddIn 运行?

【问题讨论】:

    标签: c# visual-studio-2005 vsto office-2010 office-2003


    【解决方案1】:

    不确定你是否看到过这个,但这里有一些解释:

    Office 2010 32 位应该运行 VSTO 2005 SE 加载项而不 修改,但 Office 2010 64 位不会加载 VSTO 2005 SE 加载项。

    需要 Visual Studio 2005 Tools for Office 的 Office 解决方案 Second Edition Runtime 与 64 位版本不兼容 Microsoft Office 2010。在 64 位版本中运行这些解决方案 Microsoft Office 2010,您必须将项目升级到 Visual Studio 2010 或针对 2007 的 Visual Studio 2008 项目 微软办公系统。

    更多详情here.

    还可以查看Wikipedia 上的 VSTO 兼容性表,这可能是有用的信息

    【讨论】:

    • 嗨 woodykiddy 我厌倦了你的解决方案。我将我的项目升级到 vs2010 并再次设置是的,我的插件适用于 64 位办公室。但是,如果我对 Office 2003 使用相同的设置,它就无法正常工作。我想为 office 2007-2010 和 2003 使用一种设置。这可能吗?
    猜你喜欢
    • 1970-01-01
    • 2011-02-01
    • 1970-01-01
    • 2011-02-14
    • 1970-01-01
    • 2013-03-22
    • 1970-01-01
    • 2011-05-26
    • 1970-01-01
    相关资源
    最近更新 更多