vb.net VS 2012 中的 Microsoft.Office.Interop.Outlook 2010 参考使用 .Net 2.0

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17434620/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 14:07:34  来源:igfitidea点击:

Microsoft.Office.Interop.Outlook 2010 Reference in VS 2012 Using .Net 2.0

c#.netvb.netoutlookoutlook-2010

提问by Mina Gabriel

I was tying to add a Referenceto Microsoft.Office.Interop.OutlookNamespace in to my web project i'm using .Net 2.0 And visual studio 2012

ReferenceMicrosoft.Office.Interop.Outlook在我的网络项目中添加一个命名空间,我正在使用 .Net 2.0 和 Visual Studio 2012

Question

Which one of the following is the one i should choose to work with Outlook 2010

以下哪一项是我应该选择与之合作的 Outlook 2010

I tried to google this and i couldn't find any thing

我试图用谷歌搜索这个,但我找不到任何东西

enter image description here

在此处输入图片说明

采纳答案by pkuderov

You've chosen wrong tab in Reference Manager. Choose this tab: enter image description here

您在参考管理器中选择了错误的选项卡。选择此选项卡: 在此处输入图片说明

Then find Microsoft.Office.Interop.Outlooklibrary. If you have multiple choice, then look at File Versioninfo - there's a version of Office you can work with: 12.* - 2007, 14.* - 2010, 15.* - 2012.

然后找Microsoft.Office.Interop.Outlook图书馆。如果您有多项选择,请查看File Version信息 - 您可以使用一个 Office 版本:12.* - 2007、14.* - 2010、15.* - 2012。

The best choice is 14.* but the others will mostly work too.
I also need to worry you that Microsoft suggests not to use interop on server side (link)

最好的选择是 14.*,但其他的也可以正常工作。
我还需要担心 Microsoft 建议不要在服务器端使用互操作(链接

回答by Milan Matějka

Or here is GAC path

或者这里是 GAC 路径

C:\Windows\assembly\GAC_MSIL\Microsoft.Office.Interop.Outlook\14.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Outlook.dll

C:\Windows\assembly\GAC_MSIL\Microsoft.Office.Interop.Outlook\14.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Outlook.dll

you can browse manually to folder

您可以手动浏览到文件夹

C:\Windows\assembly\GAC_MSIL\Microsoft.Office.Interop.Outlook\14.0.0.0__71e9bce111e9429c\

C:\Windows\assembly\GAC_MSIL\Microsoft.Office.Interop.Outlook\14.0.0.0__71e9bce111e9429c\

and consequently choose Microsoft.Office.Interop.Outlook.dll

并因此选择 Microsoft.Office.Interop.Outlook.dll