【问题标题】:Where can I find "Outlook 2016 Add-in" for Visual Studio?在哪里可以找到 Visual Studio 的“Outlook 2016 加载项”?
【发布时间】:2017-04-05 22:12:02
【问题描述】:

我想专门为 Outlook 2016 桌面应用程序创建 VSTO,但我的 Visual Studio 2013 专业版只有“Outlook 2013 插件”,而“Office 应用程序”创建了一个 Web 应用程序。

我在哪里可以找到这个安装程序/选项?

【问题讨论】:

  • Outlook 2013 插件可以在 Outlook 2016 中使用,只要它不需要 2016 年的新功能。
  • 嗨 Erik,有没有办法专门获取 2016 项目,以便我可以使用 Outlook 2016 的任何功能?

标签: c# .net visual-studio-2013 outlook ms-office


【解决方案1】:

Walkthrough: Creating Your First VSTO Add-In for Outlook。您需要在 Visual Studio 中选择 Outlook 2013 加载项模板。然后,您可以将 Outlook PIA 替换为与 Outlook 2016 对应的新 PIA。

您可能会发现Running Solutions in Different Versions of Microsoft Office 文章很有帮助。

附:尝试安装http://aka.ms/officedevtoolsforvs2015

【讨论】:

    【解决方案2】:

    如果您安装了 Office 2016,那么您应该在 Visual Studio 的 COM 引用中拥有 Office 16.0 对象库。

    当我尝试选择 2013 时,我遇到了 2016 模板选项未显示和构建错误 Cannot debug project because required version of MS Office application is not installed 的问题。

    启用 16.0 对象库后,添加了 PIA(主互操作程序集),重新启动 Visual Studio 后,Outlook 模板选项显示 Outlook 2013 和 2016 VSTO 插件

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-16
      • 2015-07-20
      • 2012-04-12
      相关资源
      最近更新 更多