程序集与类库(.NET) [英] Assemblies vs Class Libraries (.NET)

查看:273
本文介绍了程序集与类库(.NET)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以在 ASP.NET的上下文中指出使用程序集的优势。

据我了解,程序集可以作为可执行文件运行,具有单个入口点,并且可以在应用程序域中运行,但是我发现网上很少有合适的示例。

As I understand it, assemblies run as executables, have a single entry point, and can be run inside an application domain, but I've found very few suitable examples on the web.

推荐答案

程序集不只是可执行文件...程序集本质上是.NET。 可能具有可执行入口点的库...

An assembly is not just an executable... an assembly is essentially a .NET library that may have an executable entry point...

有关装配体描述的维基百科文章第一段:


在Microsoft .NET框架中,
程序集是部分编译的代码
库,用于部署,
版本控制和安全性。
有两种类型:进程程序集(EXE)和
库程序集(DLL)。进程
程序集表示
将使用库
程序集中定义的类的进程。 .NET程序集在CIL中包含
代码,通常是从.NET语言生成的
,然后
然后由CLR即时$在
运行时编译为机器语言。 b $ b编译器。程序集可以由
个或多个文件组成。代码文件是
,称为模块。程序集
可以包含多个代码模块和
,因为可以使用不同的
语言创建代码模块,因此
在技术上可以使用几种
语言来创建
程序集。但是,Visual Studio不支持
在一个程序集中使用不同的语言

In the Microsoft .NET framework, an assembly is a partially compiled code library for use in deployment, versioning and security. There are two types: process assemblies (EXE) and library assemblies (DLL). A process assembly represents a process which will use classes defined in library assemblies. .NET assemblies contain code in CIL, which is usually generated from .NET languages, and then compiled into machine language at runtime by the CLR just-in-time compiler. An assembly can consist of one or more files. Code files are called modules. An assembly can contain more than one code module and since it is possible to use different languages to create code modules it is technically possible to use several different languages to create an assembly. Visual Studio however does not support using different languages in one assembly.

这篇关于程序集与类库(.NET)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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