在VB和C#中添加DLL问题 [英] Adding DLL Problem in VB and C#

查看:57
本文介绍了在VB和C#中添加DLL问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我想为我的项目添加一个DLL引用,但是我收到了这个错误:



无法添加x.dll。请确保该文件可以访问,这是一个有效的程序集或COM组件。



我一直在搜索谷歌,但我发现的建议无法解决问题。

有什么想法或建议吗?



谢谢。

解决方案

我不能确定但听起来你可能试图引用一个非托管程序集?如果是这样,请尝试以下操作:使用非托管C ++库(DLL) .NET应用程序 [ ^ ]。


你好;

你可以在调试或发布文件夹中复制关于c#的.dll文件。

Hello,

I want to add a DLL reference to my project but I'm getting this error:

"x.dll could not be added. Please make sure that the file is accessible, and that is a valid assembly or COM component."

I've been searching on google but the suggestions that I've found couldn't solve the problem.
Any ideas or suggestions?

Thanks.

解决方案

I can't be sure but is sounds like you may be trying to reference an unmanaged assembly? If so, try this: Using Unmanaged C++ Libraries (DLLs) in .NET Applications[^].


hello;
you can copy about .dll file in Debug or Release folder for c#.


这篇关于在VB和C#中添加DLL问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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