Assemblies in C#

Total Post:46

Points:324
C#
 245  View(s)
Ratings:
Rate this:

Assembly Files  

Assemblies in C#

If we read about an Assembly in a proper sense then we found that all the .NET assemblies contain the definition of types, versioning information for the type, meta-data, and manifest. The developers and designers of .NET have worked a lot on the component (assembly) resolution. The assembly in .NET is the standard for components developed with the Microsoft.NET technology. The .NET assemblies may or may not be executable, i.e., they might exist as the executable (.exe) file or dynamic link library (DLL) file. Overall the .NET assemblies contain the definition of types, versioning information for the type, meta-data, and manifest. The designers or developer of .NET has worked a lot on the component (assembly) resolution. An Assembly is a basic building block of the.Net Framework applications. This is basically compiled code that can be executed by the CLR. The assembly is a collection of types and resources that are built to work together and form a logical unit of functionality. The Assembly can be a .dll or .exe files depending upon the project that we choose.

Assemblies in C#

There is two kind of assemblies in .NET:

  1. • Private Assembly
  2. • Shared Assembly
  3. • Satellite Assembly

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

Assemblies in C#

Assemblies in C#


Single File Assembly 
 :

Assemblies in C#

Shared Assembly :

Assemblies in C#

Assemblies in C#

Satellite Assembly

Assemblies in C#

The satellite assemblies are the .NET Framework assemblies containing resources specific to a given language. When you used satellite assemblies, you can place resources for different languages into the different assemblies, and the correct assembly is loaded into memory only if the user selects to view the application in that language.

Feature of Assembly

Assemblies are self-describing.

Version dependencies are recorded inside assembly manifest.

Assembly can be loaded side by side.

Installation can be easy as copying the files that belong to an assembly.

Assembly can be private or shared.

Type of Assembly

Assemblies in C#

Role in Microsoft.Net

Assemblies in C#

Assemblies in C#

Different between Assembly and DLL

An assembly is basically a file that contains the MSIL Code and Metadata.

It is the smallest unit of deployment of .Net applications.

An assembly in .net has 2 extension (.exe and .dll)

Dll : dynamic link library.

So, we can say a dll is one type of an assembly



Thanks...!!! for reading this article.

Answer