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

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

问题描述

在我创建了一个新的项目增加了Microsoft.Search.Interop.dll库的引用,当我得到这个错误。

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是提供了一些有用的API与Windows搜索进行通信的库。我用它以一个文件夹添加到系统索引。

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?

我使用VS2010 RC在Windows Server 2008上,如果这是非常重要的。

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

感谢。

推荐答案

是啊,我终于想通了。很明显,可能是在Windows搜索SDK code例子某处Microsoft.Search.Interop.dll文件。

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

您可以得到code例子这里,只是用Windows搜索找到它。

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

希望它帮助。

干杯!

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

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