我想要一个解决方案:请确保该文件是可访问的,它是一个有效的程序集或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

查看:613
本文介绍了我想要一个解决方案:请确保该文件是可访问的,它是一个有效的程序集或COM组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在C#中使用OpenCV构建一个项目。它需要一个名为 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屋!

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