转换完成的项目,一个DLL [英] Convert a completed project to a DLL

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

问题描述

我怎样才能完成的C#项目转换为一个DLL,为了使用它在其他项目?

How can I convert a completed C# project to a DLL, in order to use it in other projects?

我用Google搜索,但很多结果说开。类库,写你的代码中有,然后生成解决方案,一切都会好的。

I have Googled but lots of results say to open the Class Library, write your code there, then Build Solution and everything will be ok.

不过,我的问题是:我怎么能转换成一个完成的项目到一个DLL?该项目可以包括很多形式等。

But my question is: how can I convert a completed project to a DLL? The project can include lots of Forms etc.

推荐答案

如果你的代码完成后,你需要创建一个类的项目出来的如果你已经有一个项目,那么只有有用的代码转移到类项目在其他项目中重复使用

if your code is complete, you need to create a Class project out of it, if you already have a project then only transfer the useful code to the class project for reuse in other projects

或改变输出类型的类库,你可以发现,在该选项卡应用

or change the output type to class library, you can find that in your project properties under the tab application

这篇关于转换完成的项目,一个DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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