我想要一个解决方案:请确保该文件是可访问的,它是一个有效的程序集或COM组件 [英] I want a solution for this : Please make sure that the file is accessible and that it is a valid assembly or COM component
问题描述
cvextern.dll
的dll文件。但是,当添加此文件作为参考时,会显示以下消息: - 无法添加cvextern.dll引用,请确保该文件是可访问的,它是一个有效的程序集或COM组件。
我从搜索中累了,我花了过去2天来搜索解决方案
该文件是本机DLL,这意味着您无法通过添加将它添加到.NET项目参考...您可以通过DllImport使用它(请参阅 http ://msdn.microsoft.com/en-us/library/system.runtime.interopservices.dllimportattribute.aspx )
I am building a project with OpenCV in C#. It requires a dll file called cvextern.dll
. but, when adding this file as a reference, this message appears :-
a reference "cvextern.dll" can't be added, Please make sure that the file is accessible and that it is a valid assembly or COM component.
I get tired from searching, I spent the past 2 days in searching for a solution for that problem
the file is a native DLL which means you can't add it to a .NET project via Add Reference... you can use it via DllImport (see http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.dllimportattribute.aspx)
这篇关于我想要一个解决方案:请确保该文件是可访问的,它是一个有效的程序集或COM组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!