我可以创建DLL文件 [英] Haw can i create DLL file

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

问题描述

如何将我的类库文件转换为c#中的dll文件。

解决方案

类库是一个dll文件。你看过输出目录了吗?那里有一个dll。


没有转换。特别是如果你已经拥有类库。



而且,在.NET中,DLL和EXE之间没有本质区别。它只是一个名称模式而已。 EXE文件有一个入口点,但您可以使用它们与DLL完全相同的方式。从本质上讲,这也是一个类库,有点专长。



.NET的核心对象是汇编,而不是EXE或DLL。 br />


使用Visual Studio,如果在项目属性的第一个选项卡应用程序中选择应用程序选项类库,则可以创建类库。您可以随时更改此选项。默认情况下,程序集中的主(也是唯一一个,带有Visual Studio)可执行文件模块将命名为* .DLL,但您可以用其他任何方式命名,这无关紧要。



这就是你所需要的。



-SA

当你构建你的应用程序时,然后在创建DLL时

只需检查你的应用程序的 BIN 文件夹,有DLL。


How can i convert my Class library file to dll file in c#.

解决方案

A class library IS a dll file. Did you look in the output directory ? There''s a dll there.


There is no "convert". Especially if you already have "class library".

And, in .NET, there is no essential difference between "DLL" and "EXE". It''s just a name pattern and nothing else. "EXE" files have an entry point, but you can use them in exact same way as "DLL". Essentially, this is also a class library, a bit specializes.

The central object of .NET is "Assembly", not "EXE" or "DLL".

With Visual Studio, you can create a class library if you choose the application option "Class Library", in the very first tab, "Application" of your project properties. And you can change this option any time. By default, the main (and the only one, with Visual Studio) executable module of your assembly will be named *.DLL, but you can name it in any other way, it just does not matter.

This is all you need.

—SA


when you build you application then at time DLL created
just check your application''s BIN Folder, there is DLL.


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

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