将CS DLL转换为Interop DLL [英] Convert CS DLL into Interop DLL

查看:133
本文介绍了将CS DLL转换为Interop DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
将CSharp dll转换为interop dll时出现以下错误.
我想将对Csharp Dll的引用添加到vb.net代码中.

无法加载参考.请确保该文件可访问,并且它是有效的程序集或COM组件."

谢谢与问候,
Shraddha

Hello,
I have following error while converting the CSharp dll into the interop dll.
I want to add reference of my Csharp Dll into the vb.net code.

"A Reference could not be loaded. Please make sure that the file is accessible and that it is a valid assembly or COM Component."

Thanks & Regards,
Shraddha

推荐答案

我猜测您的CSharp.dll引用了本地或GAC中缺少的一些其他程序集. 确保所有引用的程序集均可用.

顺便说一句,希望您的dll是有效的.NET/COM程序集.尝试在ObjectViewer或IL Disassembler中打开它进行验证.
I gues your CSharp.dll is refering some other assemblies which are missing from local location or in GAC.
Make sure that all the refered assemblies are available.

And by the way, hope that your dll is valid .NET/COM assembly. Try opening it in ObjectViewer or IL Disassembler to validate.


这篇关于将CS DLL转换为Interop DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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