Assemblies and the Global Assembly Cache
how to Creating an Assembly
Compile your application by clicking Build
why we use using Directives
To allow the use of types in a namespace so that you do not have to qualify the use of a type in that namespace:
What is assemblies
Assemblies form the fundamental unit of deployment, version control, reuse, activation scoping, and security permissions for a .NET-based application.
Type of assemblies
dll(dynamic link) exe
Assemblies have the following properties:
1.Assemblies are implemented as .exe or .dll files. 2.You can share an assembly between applications by putting it in the global assembly cache( 3.Assemblies are only loaded into memory if they are required. I 4.If you want to load an assembly only to inspect it, use a method such as ReflectionOnlyLoadFrom.
to include assemblies in the global cache
Assemblies must be strong-named before they can be included in the global assembly cache
what is directive
Source lines that should be handled by the preprocessor, such as #define and #include are referred to as preprocessor directives. c# Example using System.Data
Why do we need assemblies
They provide the common language runtime with the information it needs to be aware of type implementations. You can think of an assembly as a collection of types and resources that form a logical unit of functionality and are built to work together.
What is Assembly Manifest
Within every assembly is an assembly manifest. Similar to a table of contents, the assembly manifest contains the following: 1.Identity 2.A file table describing all the other files that make up the assembly, for example, any other assemblies you created that your .exe or .dll file relies on, or even bitmap or Readme files. 3.Reference List (all external and internal dependencies)