SlideShare a Scribd company logo
3
Most read
4
Most read
5
Most read
Dr. Neeraj Kumar Pandey
Assembly
Agenda
• Assembly Introduction.
• Types of Assembly.
• Strong Naming an Assembly.
• GAC (Global Assembly Cache).
Assembly Introduction
 DLL is the precompiled chunk of .NET which can be run by the CLR.
 They form the fundamental unit of deployment version control, reuse,
activation scoping and security permissions.
 DLL is .NET term for a deployment and configuration unit.
 Files with extensions .EXE/.DLL are known as assembly.
 Assemblies include metadata(manifest and IL).
 Assemblies are the answer to the DLL hell problem.
 Assemblies can be classified as private and shared assemblies.
 Any .NET application -> compile->> Assembly (.exe or .dll).
 We use ILDASM.exe(Intermediate language disassembler) to peak at the
assembly manifest and IL and we can also used to export manifest and IL
to text file.
 ILASM.exe(intermediate language assembler) to reconstruct an assembly
from a text file that contains manifest and il.
Assembly Introduction
Assembly
.DLL .EXE
-Compilation of class library
-Supportive file.
-Don’t use any Main method.
-Can not execute dll file ,only
compile it
-Compilation of application.
-It’s a application file.
-Use Main Method.
-can execute .
Types of Assembly
Private Assembly Shared Assembly
Strong Naming an Assembly
.NET assemblies can be broadly classified into two types
1.Weak Named Assemblies
2.Strong Named Assemblies.
An Assembly name consist of 4 parts.
1.Simple textual name.
2. Version Number.
3. Culture Information.
4.Public key token.
Assembly version attribute used to specify the Assembly version. The default is
1.0.0.0 The version number of an assembly consists of following 4 parts
1.Major Version
2. Minor Version
3.Build Number.
4.Revision Number.
Strong Naming an Assembly
 All .NET framework assemblies installed in GAC(global
assemblies cache).
 C:Windowsassembly folder is called GAC.
 Strong named assembly has public key token.
 Culture specify language of the assemblies .
 Strong naming key tool is used for generating public key
tokens.
 sn.exe –k c:MystrongKeys.snk used to create public key
tokens(will discuss later).
 Strong named assembly should have all of the following
The textual assembly name
The assembly version number.
The assembly should have been signed with private/public key pair.
GAC(Global Assembly Cache)
GAC contains strong named assemblies . Assemblies
in GAC can be shared by all applications running on
that machine, without having copy the assembly
locally.
It is recommended to install an assembly into GAC ,
only when required and shared by applications ,
otherwise they should kept private.
You should not add an assembly into GAC if you wish
to deploy your application to another machine using
Xcopy deployment. This is because in Xcopy
deployment we only copy the application files to the
target machine and not the GAC contents

More Related Content

PDF
Object-oriented Programming-with C#
PDF
PPTX
Flynn's Classification .pptx
PPT
C# Exceptions Handling
PPTX
Four Pillers Of OOPS
PPTX
LINQ in C#
PDF
OS - Process Concepts
PPTX
Introduction to DAX
Object-oriented Programming-with C#
Flynn's Classification .pptx
C# Exceptions Handling
Four Pillers Of OOPS
LINQ in C#
OS - Process Concepts
Introduction to DAX

What's hot (20)

PPTX
.Net Assemblies
PPTX
Assemblies
PPT
C#.NET
PPT
JDBC – Java Database Connectivity
PPTX
Namespaces in C#
PPTX
CSharp Presentation
PPTX
JAVA AWT
PPT
MYSQL.ppt
ODP
Garbage collection
PPSX
ASP.NET Web form
PPT
Introduction to .NET Framework
PPT
Java: GUI
PPTX
Distributed database management system
PPT
Asp.net control
PPTX
Exception Handling in Java
PPSX
Introduction to .net framework
PPSX
Collections - Maps
PPTX
Java byte code & virtual machine
PPT
Introduction To Dotnet
.Net Assemblies
Assemblies
C#.NET
JDBC – Java Database Connectivity
Namespaces in C#
CSharp Presentation
JAVA AWT
MYSQL.ppt
Garbage collection
ASP.NET Web form
Introduction to .NET Framework
Java: GUI
Distributed database management system
Asp.net control
Exception Handling in Java
Introduction to .net framework
Collections - Maps
Java byte code & virtual machine
Introduction To Dotnet
Ad

Similar to Dot net assembly (20)

DOC
.Net assembly
PDF
THE CLR AND THE .NET FRAMEWORK, C#
PPTX
Assembly
DOC
.Net framework interview questions
PPTX
C# Private assembly
PPTX
Secrets of .NET Assemblies and Memory Management
PPTX
Assemblies in asp
PPT
Talk on .NET assemblies
PPTX
O porque das minhas aplicações funcionarem... E o que acontece com os recurso...
DOCX
Interview Question of Aspdotnet
PDF
Dotnet basics
PPTX
assemblies and its types in the computer system
PPT
Linux Kernel Development
PPT
Inside .net framework
DOCX
Chapter 1 introduction to .net
PDF
.NET TECHNOLOGIES
PPTX
.Net platform an understanding
PPTX
Dotnet Basics Presentation
PPT
SynapseIndia dotnet development platform overview
PPTX
1assembly in c#
.Net assembly
THE CLR AND THE .NET FRAMEWORK, C#
Assembly
.Net framework interview questions
C# Private assembly
Secrets of .NET Assemblies and Memory Management
Assemblies in asp
Talk on .NET assemblies
O porque das minhas aplicações funcionarem... E o que acontece com os recurso...
Interview Question of Aspdotnet
Dotnet basics
assemblies and its types in the computer system
Linux Kernel Development
Inside .net framework
Chapter 1 introduction to .net
.NET TECHNOLOGIES
.Net platform an understanding
Dotnet Basics Presentation
SynapseIndia dotnet development platform overview
1assembly in c#
Ad

More from Dr.Neeraj Kumar Pandey (20)

PPTX
Delegates and events in C#
PPTX
Structure in c#
PPTX
Strings in c#
PPTX
Program control statements in c#
PPTX
Operators and expression in c#
PPTX
Method parameters in c#
PPTX
Enumeration in c#
PPTX
C# classes objects
PPT
Cloud introduction
PPTX
Role of cloud computing in scm
PPTX
PPTX
cloud computing Multi cloud
PPTX
Ibm bluemix case study
PPTX
Business cases for the need of cloud computing
PPT
cloud computing:Types of virtualization
PPTX
cloud computing: Vm migration
PPTX
Cloud Computing: Virtualization
PPT
Dot net introduction
PPTX
C# lecture 2: Literals , Variables and Data Types in C#
PPTX
C# lecture 1: Introduction to Dot Net Framework
Delegates and events in C#
Structure in c#
Strings in c#
Program control statements in c#
Operators and expression in c#
Method parameters in c#
Enumeration in c#
C# classes objects
Cloud introduction
Role of cloud computing in scm
cloud computing Multi cloud
Ibm bluemix case study
Business cases for the need of cloud computing
cloud computing:Types of virtualization
cloud computing: Vm migration
Cloud Computing: Virtualization
Dot net introduction
C# lecture 2: Literals , Variables and Data Types in C#
C# lecture 1: Introduction to Dot Net Framework

Recently uploaded (20)

PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPT
Teaching material agriculture food technology
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Encapsulation theory and applications.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Machine learning based COVID-19 study performance prediction
PDF
Encapsulation_ Review paper, used for researhc scholars
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
cuic standard and advanced reporting.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Per capita expenditure prediction using model stacking based on satellite ima...
Reach Out and Touch Someone: Haptics and Empathic Computing
Understanding_Digital_Forensics_Presentation.pptx
Teaching material agriculture food technology
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
The AUB Centre for AI in Media Proposal.docx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Digital-Transformation-Roadmap-for-Companies.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Encapsulation theory and applications.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Chapter 3 Spatial Domain Image Processing.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Machine learning based COVID-19 study performance prediction
Encapsulation_ Review paper, used for researhc scholars

Dot net assembly

  • 1. Dr. Neeraj Kumar Pandey Assembly
  • 2. Agenda • Assembly Introduction. • Types of Assembly. • Strong Naming an Assembly. • GAC (Global Assembly Cache).
  • 3. Assembly Introduction  DLL is the precompiled chunk of .NET which can be run by the CLR.  They form the fundamental unit of deployment version control, reuse, activation scoping and security permissions.  DLL is .NET term for a deployment and configuration unit.  Files with extensions .EXE/.DLL are known as assembly.  Assemblies include metadata(manifest and IL).  Assemblies are the answer to the DLL hell problem.  Assemblies can be classified as private and shared assemblies.  Any .NET application -> compile->> Assembly (.exe or .dll).  We use ILDASM.exe(Intermediate language disassembler) to peak at the assembly manifest and IL and we can also used to export manifest and IL to text file.  ILASM.exe(intermediate language assembler) to reconstruct an assembly from a text file that contains manifest and il.
  • 4. Assembly Introduction Assembly .DLL .EXE -Compilation of class library -Supportive file. -Don’t use any Main method. -Can not execute dll file ,only compile it -Compilation of application. -It’s a application file. -Use Main Method. -can execute .
  • 5. Types of Assembly Private Assembly Shared Assembly
  • 6. Strong Naming an Assembly .NET assemblies can be broadly classified into two types 1.Weak Named Assemblies 2.Strong Named Assemblies. An Assembly name consist of 4 parts. 1.Simple textual name. 2. Version Number. 3. Culture Information. 4.Public key token. Assembly version attribute used to specify the Assembly version. The default is 1.0.0.0 The version number of an assembly consists of following 4 parts 1.Major Version 2. Minor Version 3.Build Number. 4.Revision Number.
  • 7. Strong Naming an Assembly  All .NET framework assemblies installed in GAC(global assemblies cache).  C:Windowsassembly folder is called GAC.  Strong named assembly has public key token.  Culture specify language of the assemblies .  Strong naming key tool is used for generating public key tokens.  sn.exe –k c:MystrongKeys.snk used to create public key tokens(will discuss later).  Strong named assembly should have all of the following The textual assembly name The assembly version number. The assembly should have been signed with private/public key pair.
  • 8. GAC(Global Assembly Cache) GAC contains strong named assemblies . Assemblies in GAC can be shared by all applications running on that machine, without having copy the assembly locally. It is recommended to install an assembly into GAC , only when required and shared by applications , otherwise they should kept private. You should not add an assembly into GAC if you wish to deploy your application to another machine using Xcopy deployment. This is because in Xcopy deployment we only copy the application files to the target machine and not the GAC contents