C#从Windows Forms项目中制作DLL [英] C# make a DLL out of a Windows Forms Project

查看:52
本文介绍了C#从Windows Forms项目中制作DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含2个项目的解决方案。一个项目只能从另一个项目运行。我想将其转换为DLL,以便最终用户无法直接运行它(按原样,他们可以获得2个可执行文件)。有什么简单的方法可以执行此操作,而不必复制整个项目?

I have a solution with 2 projects in it. One of the projects can only be run from the other. I want to convert it to DLL, so that end-users cannot directly run it (as it is, they get 2 executables). Is there any straightforward way to do this, without having to copy the entire project?

谢谢

PM

推荐答案

是的,转到项目属性,应用程序选项卡并更改输出类型。

Yes, go to the Project Properties, Application tab and change the Output Type.

这篇关于C#从Windows Forms项目中制作DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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