简体   繁体   English

在哪里可以找到Visual Studio的“ Outlook 2016加载项”?

[英]Where can I find “Outlook 2016 Add-in” for Visual Studio?

I want to specifically create a VSTO for Outlook 2016 Desktop application but my Visual Studio 2013 Professional edition only has "Outlook 2013 Add-in" and the "App for Office" creates a Web App. 我想专门为Outlook 2016 Desktop应用程序创建VSTO,但我的Visual Studio 2013 Professional版本仅包含“ Outlook 2013加载项”,而“ App for Office”创建一个Web App。

Where can I find this installer/option? 在哪里可以找到此安装程序/选件?

See Walkthrough: Creating Your First VSTO Add-In for Outlook . 请参阅演练:为Outlook创建第一个VSTO加载项 You need to choose the Outlook 2013 Add-in template in Visual Studio. 您需要在Visual Studio中选择Outlook 2013加载项模板。 Then you can replace the Outlook PIA with a new one which corresponds to Outlook 2016. 然后,您可以使用与Outlook 2016相对应的新PIA替换Outlook PIA。

You may find the Running Solutions in Different Versions of Microsoft Office article helpful. 您可能会发现“ 在Microsoft Office的不同版本中运行解决方案”一文很有帮助。

PS Try to install http://aka.ms/officedevtoolsforvs2015 PS尝试安装http://aka.ms/officedevtoolsforvs2015

If you have Office 2016 installed then you should have the Office 16.0 Object library in your COM references in Visual Studio. 如果已安装Office 2016,则应在Visual Studio的COM引用中具有Office 16.0对象库。

I had this issue with the 2016 template option not showing and a build error of Cannot debug project because required version of MS Office application is not installed when I tried picking 2013. 我遇到了这个问题,其中没有显示2016模板选项,并且Cannot debug project because required version of MS Office application is not installed我尝试选择2013年时Cannot debug project because required version of MS Office application is not installed错误。

Once I enabled the 16.0 Object Library the PIA (Primary Interop Assemblies) were added and after restarting Visual Studio the Outlook template option shows Outlook 2013 and 2016 VSTO Add-in 启用16.0对象库后,将添加PIA(主互操作程序集),并且在重新启动Visual Studio之后,Outlook模板选项将显示Outlook 2013和2016 VSTO加载项

Visual Studio COM参考

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM