Describe the parts of assembly - .NET Common Language Runtime, CLR

Describe the parts of assembly.

- An assembly is a partially compiled code library.

- In .NET framework, an assembly is a portable executable and can be an EXE (process assembly) or a DLL (library assembly).

- An assembly can consist of one or more files or modules in various languages.

- It is used in deployment, versioning and security.

- It is the standard for components developed with the Microsoft .NET.

- The .NET assemblies may or may not be executable, it means they might exist as the executable (.exe) file or dynamic link library file.

There are two types of assemblies in .NET:

1. Private assemblies
2. Shared assemblies

- An assembly can be a single file or it may consists of the multiple files.

- They are partially compiled code libraries that form the fundamental unit of deployment, versioning, activation scoping, reuse and security.

- It provides a collection of types and resources that work together to form a logical unit of functionality.

- They are the smallest units of code in .NET framework.

1. Private assemblies:

- These assemblies are simple and copied with each calling assembly in the calling assembly folder.

- These assemblies are accessible by a single application.

- They reside within the application folder and are unique by name.

- They can be directly used by copying and pasting them to the bin folder.

- These assemblies are kept in a local folder in which the client application has been installed.

- It is used only for particular applications.

- There is no version constraint in private assembly.

2. Shared assemblies:

- This assembly is also called as strong named assemblies.

- These assemblies are the copied to a single location .

- Shared assemblies are not copied in the private folders of each calling assembly.

- Each assembly has a four part name including its face name, version, public key and culture information.

- It is stored in the Global Assembly Cache (GAC) with a strong name assigned to it.

- GAC contains a collection of shared assemblies.

3. Satellite assemblies:

- These assemblies provide the support for multiple language which is based on different cultures.

- These are kept in different modules based on the different categories available.

- It is used to deploy language and culture specific resources for an application. In an application, a separate product ID is assigned to each language and a satellite assembly is installed in a language specific subdirectory.
Overview of CLR integration - .NET Common Language Runtime, CLR
The CLR (Common Language Runtime) integration is hosted in the Microsoft SQL Server 2005....
Describe how to create and use array in .NET - DOT.NET
DOT.NET - Arrays treat several items as a single collection.....
Define Constants and Enumerations in .NET - DOT.NET
Constants are values which are known at compile time and do not change.....
Post your comment