无法从程序集“... \Microsoft.Search.Interop.dll”嵌入互操作类型因为它缺少GuidAttribute属性 [英] Cannot embed interop types from assembly "...\Microsoft.Search.Interop.dll" because it is missing the GuidAttribute attribute
问题描述
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屋!