简体   繁体   English

无法使用Outlook 2016调试Outlook 2013外接程序项目

[英]Not able to debug Outlook 2013 add-in project using outlook 2016

I have created outlook 2013 add-in project using visual studio 2013. 我已经使用Visual Studio 2013创建了Outlook 2013外接程序项目。

I was able debug it on outlook 2013. 我能够在Outlook 2013上对其进行调试。

During upgrade of office products my outlook 2013 upgraded to outlook 2016. 在升级办公产品期间,我的Outlook 2013升级到Outlook 2016。

Now I am not able to debug my project. 现在,我无法调试我的项目。

I tried giving path of new outlook in "Start external program" of Start action in Debug tab of project properties , then it gives error as 我尝试在项目属性的“调试”选项卡中的“开始”操作的“启动外部程序”中给出新的Outlook路径,然后显示为

An add-in could not be found or could not be loaded

Could not load file or assembly 'OutlookPlugin, Version=1.0.0.0, Culture=neutral' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)

Can any one help me in how to debug outlook 2013 project in outlook 2016. 任何人都可以帮助我如何在Outlook 2016中调试Outlook 2013项目。

Do you get any build errors or warnings? 您有任何构建错误或警告吗? Did you have a chance to check out the list of references? 您是否有机会查看参考文献列表?

Try to replace the referenced Outlook 2013 interop assembly with the latest one which corresponds to Outlook 2016. That's how VSTO knows which Outlook version is to run. 尝试用对应于Outlook 2016的最新组件替换引用的Outlook 2013互操作程序集。这就是VSTO知道要运行哪个Outlook版本的方式。 You need to choose Outlook 2016 on the COM references tab and the required interop file will be created for you. 您需要在“ COM引用”选项卡上选择Outlook 2016,然后将为您创建所需的互操作文件。

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

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