为项目创建.dll文件 [英] To create .dll file for a project

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

问题描述





我有一个包含2个项目的解决方案,我需要第二个项目的dll文件。

这两个项目都是控制台应用程序项目

我在谷歌搜索但我找不到解决方案。

请让我知道如何为第二个项目创建一个dll文件。

Hi,

I have a solution with 2 projects, I need a dll file of the second project.
Both projects are console application projects
I have searched in google but I couldn''t find the solution.
Please let me know how to create a dll file for second project.

推荐答案

每个项目都将创建为dll或exe。如果您需要dll,则需要将代码移动到类库项目中。
Each project will get created as a dll or an exe. If you need dll specifically you''ll need to move your code into a Class Library Project.


您好,



打开你的第二个项目,转到属性 - >应用并将输出类型更改为类库。



希望这会有所帮助。
Hi,

Open your second project, go to Properties -> Application and change the Output type into "Class Library".

Hope this helps.


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

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