将完成的项目转换为DLL [英] Convert a completed project to a DLL

查看:175
本文介绍了将完成的项目转换为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?该项目可以包含许多Forms等。

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

推荐答案

如果你的代码完成,你需要创建一个Class项目如果您已经有一个项目,那么只需将有用的代码转移到类项目中,以便在其他项目中重新使用

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天全站免登陆