Warning: The referenced component 'Microsoft.O

2019-02-21 12:12发布

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?

After these updates, my project stopped building

This are the reference properties for Microsoft.Office.Core

References list

2条回答
甜甜的少女心
2楼-- · 2019-02-21 12:48

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.

查看更多
Fickle 薄情
3楼-- · 2019-02-21 13:08

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.

查看更多
登录 后发表回答