Visual Studio 2013中的Office 2016外接程序开发 [英] Office 2016 add-in development in Visual studio 2013

查看:308
本文介绍了Visual Studio 2013中的Office 2016外接程序开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要为Office 2016开发外接程序.我们正在使用Visual Studio2013.它仅显示Office 2013外接程序模板.是否可以从Visual Studio 2013创建Office 2016加载项?如果是这样,请让我知道步骤.

We need to develop add-in for the Office 2016. We are using the Visual studio 2013. It is only showing the Office 2013 add-in templates. Is it possible to create Office 2016 add-in from Visual studio 2013? If so, kindly let me know the steps.

推荐答案

您需要VS 2015才能获得Office 2016的特定模板.VSTO仅提供Office当前"版本的模板.

You need VS 2015 to get the specific templates for Office 2016. VSTO only ever provides templates for "current" versions of Office.

如果已安装Office 2013,则可以为其开发外接程序.在Office 2016中安装和运行它应该没有问题-除非您想使用特定于2016的技术.在这种情况下,可以对特定于2016的部分使用后期绑定(PInvoke),但是调试/测试将是有点痛苦.

If Office 2013 is installed you can develop an Add-in for it. There should be no problem installing and running it in Office 2016 - unless you want to use technology specific to 2016. In that case, you could use late-binding (PInvoke) for the 2016-specific portions, but debugging/testing would be a bit of a pain.

您可以下载免费的Visual Studio 2015社区版( https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx )以及VSTO软件包(https://www.visualstudio.com/en-us/features/office-tools-vs.aspx ):VSTO确实集成到了2015版(和2013版).许可限制当然会适用.

You can download the free Visual Studio 2015 Community edition (https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx) as well as the VSTO package (https://www.visualstudio.com/en-us/features/office-tools-vs.aspx): VSTO does integrate into the Community edition for version 2015 (and 2013, for that matter). Licensing restrictions would apply, of course.

除此之外,您需要升级到完整的VS 2015.

Other than that, you'd need to upgrade to a full VS 2015.

这篇关于Visual Studio 2013中的Office 2016外接程序开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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