无法从程序集“... \Microsoft.Search.Interop.dll”嵌入互操作类型因为它缺少GuidAttribute属性 [英] Cannot embed interop types from assembly "...\Microsoft.Search.Interop.dll" because it is missing the GuidAttribute attribute

查看:1406
本文介绍了无法从程序集“... \Microsoft.Search.Interop.dll”嵌入互操作类型因为它缺少GuidAttribute属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我创建的新项目中添加对Microsoft.Search.Interop.dll库的引用时,我收到此错误。



Microsoft.Search.Interop。 dll是提供一些有用的API与Windows搜索进行通信的库。我使用它来添加一个文件夹到系统索引器。



有没有人得到这个错误,如果是,我该如何解决它? p>

如果重要的话,我在Windows Server 2008上使用VS2010 RC。

解决方案

是的,我终于明白了。显然,Windows Search SDK代码示例中有一个Microsoft.Search.Interop.dll文件。



您可以获取代码示例 here ,只需使用windows搜索即可找到。



希望它有帮助。



干杯!


I get this error when adding a reference to the Microsoft.Search.Interop.dll library in a new project that I created.

Microsoft.Search.Interop.dll is a library that provides some useful API to communicate with Windows Search. I use it in order to add a folder to the system indexer.

Did anybody else get this error, and if so, how should I go about solving it?

I'm using VS2010 RC on a Windows Server 2008 if that is important.

解决方案

Yeah, I eventually figured it out. Apparently, there is a Microsoft.Search.Interop.dll file somewhere within the Windows Search SDK code examples.

You can get the code examples here, and just use the windows search to find it.

Hope it helps.

Cheers!

这篇关于无法从程序集“... \Microsoft.Search.Interop.dll”嵌入互操作类型因为它缺少GuidAttribute属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆