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

I linked to add the Reference to Microsoft.Office.Interop.Outlook namespace to my web project that I am using .Net 2.0 And Visual Studio 2012

Question

Which of the following options should I choose to work with Outlook 2010

I tried to do this and I could not find anything

enter image description here

+4
source share
2 answers

You have selected the wrong tab in the link manager. Select this tab: enter image description here

Then find the Microsoft.Office.Interop.Outlook library. If you have several options, then look at File Version info - there is an Office version that you can work with: 12. * - 2007, 14. * - 2010, 15. * - 2012.

The best choice is 14. *, but others will work mostly.
I also need to worry that Microsoft suggests not using server side interop ( link )

+1
source

Or here is the GAC path

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

you can manually view the folder

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

and therefore select Microsoft.Office.Interop.Outlook.dll

+10
source

Source: https://habr.com/ru/post/1489351/


All Articles