gpt4 book ai didi

.net - 程序集与类库 (.NET)

转载 作者:行者123 更新时间:2023-12-02 15:10:42 25 4
gpt4 key购买 nike

有人能指出在 ASP.NET 的“上下文”中使用程序集的优点吗? .

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

最佳答案

程序集不仅仅是一个可执行文件...程序集本质上是一个 .NET 库,可能有一个可执行入口点...

Wikipedia article with description of assemblies第一段:

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 - 程序集与类库 (.NET),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1888402/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com