如何创建vb.net类到dll文件? [英] How to create vb.net class to a dll file ?

查看:89
本文介绍了如何创建vb.net类到dll文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将我的所有项目vb,net移动到c#.net。

首先我决定将vb.net转换为C#.net但我遇到了很多问题。

整个代码不会转换为C#.net。我知道类文件可以制作成dll文件。

但是我不知道怎么做。



谢谢你的高级版。

I recently moves my all projects vb,net to c#.net.
Firstly i was decided to convert vb.net to C#.net but i got a lot problems.
Whole codes are not converted to C#.net. I know class file can be make to dll file.
But i don't know how to do that.

Thanks in advanced.

推荐答案

Create a Library Project (base on your language, VB) and move your class into that project. Ensure your Namespace and build the project. It will create a dll file.

IF you add that project (Library Project) in your Windows Form Application Solution, you can reference it using "Projects" tab

IF it is not in the Windows Form Application Solution (again this is the Library Project), in your Windows Form Application Project, add the reference to that dll file

dll file location (Library Project) ->bin->Debug/Release->file.dll


这篇关于如何创建vb.net类到dll文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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