Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Microsoft.Office.Core Reference Missing

Using the example provided in codeproject I am struggling to work out where I can find the reference to the library Microsoft.Office.Core.

I am getting the error "The referenced component 'Microsoft.Office.Core' could not be found."

I only have office 2007 enterprise edition and outlook 2003 installed on this system. Could this be the cause of this? Otherwise which specific dll am I supposed to be referencing?

like image 541
Maxim Gershkovich Avatar asked May 09 '11 05:05

Maxim Gershkovich


2 Answers

You can add reference of Microsoft.Office.Core from COM components tab in the add reference window by adding reference of Microsoft Office 12.0 Object Library. The screen shot will shows what component you need.

enter image description here

like image 100
Adil Avatar answered Sep 20 '22 02:09

Adil


None of the above answer helped me, i was using Visual Studio 2017. What I did is, installed Office/SharePoint Development using Visual Studio Installer.

enter image description here

After that, I was able to see 'office', this assembly contains Microsoft.Office.Core.

enter image description here

Hope this helps you.

like image 42
Abhimanyu Avatar answered Sep 19 '22 02:09

Abhimanyu