Warning: The referenced component 'Microsoft.O

2019-02-21 12:39发布

问题:

When building one of my projects, I'm getting the following warnings:

Warning 3   Cannot find wrapper assembly for type library "Microsoft.Office.Core".
Warning 4   The referenced component 'Microsoft.Office.Core' could not be found.    

Strangely, the build fails with no errors. The warnings above seem to be the problem. This started happening after I installed some Office 2007 updates from Windows Update. Before that it was building everything fine.

Has anyone experienced the same issue? Any ideas on how to solve this problem without modifying the project?

回答1:

most likely one of your reference was updated to new version, so the current version can not be found.

Click "project****Properties\reference" and remove the one can not be found is ok.



回答2:

It appears to be a COM reference? I'd guess the update caused the reference to be considered out of date.

If so i'd consider building the interops manually and checking them in, then adding references to the interops. The downside is that will move the problem from compile time to run time.