什么是.Net中的汇编 [英] what is assembly in .Net

查看:93
本文介绍了什么是.Net中的汇编的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.net中的程序集是什么??

解决方案

我的建议是在.Net中拿起一本书来完成它。

简而言之:

汇编是形成逻辑逻辑单元的类型和资源的集合。



编译应用程序时,创建的 MSIL 代码存储在程序集中。

程序集包括可以直接从Windows运行的可执行应用程序文件,而不需要任何其他程序(这些程序具有.exe文件扩展名)和库(具有.dll扩展名)供使用通过其他应用程序。



.NET中有两种程序集;

  • private
  • shared




私有程序集很简单,并与调用程序集文件夹中的每个调用程序集一起复制。



共享程序集(也称为强命名程序集)被复制到一个位置(通常是全局程序集缓存)。对于同一应用程序中的所有调用程序集,将从其原始位置使用共享程序集的相同副本。因此,共享程序集不会复制到每个调用程序集的私有文件夹中。每个共享程序集都有一个四部分名称,包括其名称,版本,公钥令牌和文化信息。公钥令牌和版本信息使得具有相同名称的两个不同组件或具有不同版本的两个类似组件几乎不可能彼此混合。



。 。并尝试此处 [ ^ ]了解更多信息。


您使用过Google吗?

http://msdn.microsoft.com /en-us/library/hk5f40ct%28v=vs.90%29.aspx [ ^ ]

我想MSDN文章说的一切。

这里甚至是关于他们的维基百科文章:

http://en.wikipedia.org/wiki/Assembly_%28CLI%29 [ ^ ]


what is the assembly in .net..?

解决方案

My recommendation would be to pick up a book in .Net and go through it.


In short:
An assembly is a collection of types and resources that forms a logical unit of functionality.

When you compile an application, the MSIL code created is stored in an assembly .
Assemblies include both executable application files that you can run directly from Windows without the need for any other programs (these have a .exe file extension), and libraries (which have a .dll extension) for use by other applications.

There are two kind of assemblies in .NET;
  • private
  • shared


Private assemblies are simple and copied with each calling assemblies in the calling assemblies folder.

Shared assemblies (also called strong named assemblies) are copied to a single location (usually the Global assembly cache). For all calling assemblies within the same application, the same copy of the shared assembly is used from its original location. Hence, shared assemblies are not copied in the private folders of each calling assembly. Each shared assembly has a four part name including its face name, version, public key token and culture information. The public key token and version information makes it almost impossible for two different assemblies with the same name or for two similar assemblies with different version to mix with each other.

..and try here[^] for more.


Did you use Google?
http://msdn.microsoft.com/en-us/library/hk5f40ct%28v=vs.90%29.aspx[^]
I guess the MSDN article says it all.
Here is even a Wikipedia article about them:
http://en.wikipedia.org/wiki/Assembly_%28CLI%29[^]


这篇关于什么是.Net中的汇编的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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