如何在C#中将Winforms转换为DLL [英] How to convert winforms to dll in C#

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

问题描述

如何在C#中将整个项目Winforms转换为DLL.
麻烦您,任何人都可以帮助我

How to Convert the Whole Project Winforms to DLL in C#.
Plz, Anyone can help me

推荐答案

在Visual Studio中打开您的应用,然后打开解决方案资源管理器"窗格.
打开您的项目分支,然后双击属性"
转到应用程序"选项卡,然后将输出类型"更改为类库".
您可能需要从项目中手动删除"Program.cs"文件.

下次构建时,它应生成一个DLL文件而不是EXE
Open you app in Visual Studio and open the Solution Explorer pane.
Open your project branch, and double click on "Properties"
Go to the "Application" tab, and change "Output Type" to "Class Library".
You may have to manually remove the "Program.cs" file from your project.

When you next build, it should generate a DLL file instead of an EXE


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

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