SlideShare ist ein Scribd-Unternehmen logo
1 von 9
Assembly
 A fundamental unit of any .NET application.
 Contains the code that is executed by CLR (common language
runtime).
 Contains name, version, types (classes and others) created in it
and details about other assemblies it references.
 May be either an executable file - .EXE or a dynamic link
library - .DLL
Structure of Assembly
Assembly
Manifest
Type Metadata
MSIL code
Resources(opti
onal)
Structure of Assembly
 Assembly manifest contains:
 Assembly name
 Version number of the assembly
 Culture - language assembly supports
 Strong name - required only for global assemblies
 List of files in the assembly. An assembly can be made up of
multiple files
 Type reference information - informs which type is in which file
of the assembly
 Information about referenced assemblies - Contains list of other
assemblies referenced by this assembly. For each assembly
referenced we have assembly name, version, culture and public
key (if assembly is a global assembly)
Structure of Assembly
 Type metadata
 This section of an assembly contains information about all
classes, structure etc. created in the assembly.
MSIL Code
 MSIL code of the assembly is placed in third part of the
assembly. This MSIL is converted to native code by CLR at
runtime.
Resource
 This section contains messages and pictures used by assembly.
Private Assembly
 A private assembly is an assembly that is deployed with an
application and is available for the exclusive use of that
application.
 Other applications do not share the private assembly.
 Private assemblies are one of the methods that can be used to
create isolated applications.
 It is stored in the directory where the application resides.
 There is no version constraint in a private assembly. To use
private assembly in any application, one needs to deploy them
in the application's directory.
Global Assembly
 A global assembly is a public assembly that is shared by
multiple applications.
 Unlike private assembly,global assembly is not stored at
location where application resides. Global assembly instead is
placed in GAC (Global Assembly Cache) and it can be
referenced anywhere within the system.
 So only one copy is stored, but many applications can use that
single copy.
Assembly Placement
 For most .NET Framework applications, assemblies that
make up an application are located in the application's
directory, in a subdirectory of the application's directory, or
in the global assembly cache.
 If the assembly needs is used by multiple applications then
one should make it global else keep it private.
Thank You

Weitere ähnliche Inhalte

Was ist angesagt?

Inheritance in java
Inheritance in javaInheritance in java
Inheritance in java
Tech_MX
 

Was ist angesagt? (20)

Java static keyword
Java static keywordJava static keyword
Java static keyword
 
Java - Collections framework
Java - Collections frameworkJava - Collections framework
Java - Collections framework
 
Packages in java
Packages in javaPackages in java
Packages in java
 
Java collections concept
Java collections conceptJava collections concept
Java collections concept
 
OOP java
OOP javaOOP java
OOP java
 
Exception Handling in JAVA
Exception Handling in JAVAException Handling in JAVA
Exception Handling in JAVA
 
Java interfaces
Java interfacesJava interfaces
Java interfaces
 
Collection Framework in java
Collection Framework in javaCollection Framework in java
Collection Framework in java
 
Java & advanced java
Java & advanced javaJava & advanced java
Java & advanced java
 
Wrapper class
Wrapper classWrapper class
Wrapper class
 
Arrays in Java
Arrays in JavaArrays in Java
Arrays in Java
 
Inheritance and Polymorphism
Inheritance and PolymorphismInheritance and Polymorphism
Inheritance and Polymorphism
 
JAVA AWT
JAVA AWTJAVA AWT
JAVA AWT
 
Data Types & Variables in JAVA
Data Types & Variables in JAVAData Types & Variables in JAVA
Data Types & Variables in JAVA
 
Common language runtime clr
Common language runtime clrCommon language runtime clr
Common language runtime clr
 
Java beans
Java beansJava beans
Java beans
 
Java Exception handling
Java Exception handlingJava Exception handling
Java Exception handling
 
Java Tokens
Java  TokensJava  Tokens
Java Tokens
 
Inheritance in java
Inheritance in javaInheritance in java
Inheritance in java
 
Introduction to .NET Framework
Introduction to .NET FrameworkIntroduction to .NET Framework
Introduction to .NET Framework
 

Ähnlich wie C# Private assembly

What is Dll, Assemblies and GAC...?
What is Dll, Assemblies and GAC...?What is Dll, Assemblies and GAC...?
What is Dll, Assemblies and GAC...?
Raja Naqash
 
.Net framework interview questions
.Net framework interview questions.Net framework interview questions
.Net framework interview questions
Mir Majid
 
11 abstract data types
11 abstract data types11 abstract data types
11 abstract data types
jigeno
 
Inside .net framework
Inside .net frameworkInside .net framework
Inside .net framework
Faisal Aziz
 
Talk on .NET assemblies
Talk on .NET assembliesTalk on .NET assemblies
Talk on .NET assemblies
Vidya Agarwal
 
.NET TECHNOLOGIES
.NET TECHNOLOGIES.NET TECHNOLOGIES
.NET TECHNOLOGIES
Prof Ansari
 
dylibencapsulation
dylibencapsulationdylibencapsulation
dylibencapsulation
Cole Herzog
 

Ähnlich wie C# Private assembly (20)

.Net assembly
.Net assembly.Net assembly
.Net assembly
 
Assembly
AssemblyAssembly
Assembly
 
.Net Assemblies
.Net Assemblies.Net Assemblies
.Net Assemblies
 
assemblies and its types in the computer system
assemblies and its types in the computer systemassemblies and its types in the computer system
assemblies and its types in the computer system
 
What is Dll, Assemblies and GAC...?
What is Dll, Assemblies and GAC...?What is Dll, Assemblies and GAC...?
What is Dll, Assemblies and GAC...?
 
.Net framework interview questions
.Net framework interview questions.Net framework interview questions
.Net framework interview questions
 
THE CLR AND THE .NET FRAMEWORK, C#
THE CLR AND THE .NET FRAMEWORK, C#THE CLR AND THE .NET FRAMEWORK, C#
THE CLR AND THE .NET FRAMEWORK, C#
 
11 abstract data types
11 abstract data types11 abstract data types
11 abstract data types
 
Visual Basic User Interface-VI
Visual Basic User Interface-VIVisual Basic User Interface-VI
Visual Basic User Interface-VI
 
Namespaces in C#
Namespaces in C#Namespaces in C#
Namespaces in C#
 
Assemblies in asp
Assemblies in aspAssemblies in asp
Assemblies in asp
 
Secrets of .NET Assemblies and Memory Management
Secrets of .NET Assemblies and Memory ManagementSecrets of .NET Assemblies and Memory Management
Secrets of .NET Assemblies and Memory Management
 
Inside .net framework
Inside .net frameworkInside .net framework
Inside .net framework
 
Talk on .NET assemblies
Talk on .NET assembliesTalk on .NET assemblies
Talk on .NET assemblies
 
Dotnet basics
Dotnet basicsDotnet basics
Dotnet basics
 
Chapter 1 introduction to .net
Chapter 1 introduction to .netChapter 1 introduction to .net
Chapter 1 introduction to .net
 
.NET TECHNOLOGIES
.NET TECHNOLOGIES.NET TECHNOLOGIES
.NET TECHNOLOGIES
 
dylibencapsulation
dylibencapsulationdylibencapsulation
dylibencapsulation
 
Frame class library and namespace
Frame class library and namespaceFrame class library and namespace
Frame class library and namespace
 
Interview Question of Aspdotnet
Interview Question of AspdotnetInterview Question of Aspdotnet
Interview Question of Aspdotnet
 

Mehr von Prem Kumar Badri

Mehr von Prem Kumar Badri (20)

Module 15 attributes
Module 15 attributesModule 15 attributes
Module 15 attributes
 
Module 14 properties and indexers
Module 14 properties and indexersModule 14 properties and indexers
Module 14 properties and indexers
 
Module 12 aggregation, namespaces, and advanced scope
Module 12 aggregation, namespaces, and advanced scopeModule 12 aggregation, namespaces, and advanced scope
Module 12 aggregation, namespaces, and advanced scope
 
Module 13 operators, delegates, and events
Module 13 operators, delegates, and eventsModule 13 operators, delegates, and events
Module 13 operators, delegates, and events
 
Module 11 : Inheritance
Module 11 : InheritanceModule 11 : Inheritance
Module 11 : Inheritance
 
Module 10 : creating and destroying objects
Module 10 : creating and destroying objectsModule 10 : creating and destroying objects
Module 10 : creating and destroying objects
 
Module 9 : using reference type variables
Module 9 : using reference type variablesModule 9 : using reference type variables
Module 9 : using reference type variables
 
Module 8 : Implementing collections and generics
Module 8 : Implementing collections and genericsModule 8 : Implementing collections and generics
Module 8 : Implementing collections and generics
 
Module 7 : Arrays
Module 7 : ArraysModule 7 : Arrays
Module 7 : Arrays
 
Module 6 : Essentials of Object Oriented Programming
Module 6 : Essentials of Object Oriented ProgrammingModule 6 : Essentials of Object Oriented Programming
Module 6 : Essentials of Object Oriented Programming
 
Module 5 : Statements & Exceptions
Module 5 : Statements & ExceptionsModule 5 : Statements & Exceptions
Module 5 : Statements & Exceptions
 
Module 4 : methods & parameters
Module 4 : methods & parametersModule 4 : methods & parameters
Module 4 : methods & parameters
 
Module 3 : using value type variables
Module 3 : using value type variablesModule 3 : using value type variables
Module 3 : using value type variables
 
Module 2: Overview of c#
Module 2:  Overview of c#Module 2:  Overview of c#
Module 2: Overview of c#
 
Module 1 : Overview of the Microsoft .NET Platform
Module 1 : Overview of the Microsoft .NET PlatformModule 1 : Overview of the Microsoft .NET Platform
Module 1 : Overview of the Microsoft .NET Platform
 
C# Non generics collection
C# Non generics collectionC# Non generics collection
C# Non generics collection
 
C# Multi threading
C# Multi threadingC# Multi threading
C# Multi threading
 
C# Method overloading
C# Method overloadingC# Method overloading
C# Method overloading
 
C# Inheritance
C# InheritanceC# Inheritance
C# Inheritance
 
C# Generic collections
C# Generic collectionsC# Generic collections
C# Generic collections
 

Kürzlich hochgeladen

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 

Kürzlich hochgeladen (20)

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 

C# Private assembly

  • 1.
  • 2. Assembly  A fundamental unit of any .NET application.  Contains the code that is executed by CLR (common language runtime).  Contains name, version, types (classes and others) created in it and details about other assemblies it references.  May be either an executable file - .EXE or a dynamic link library - .DLL
  • 3. Structure of Assembly Assembly Manifest Type Metadata MSIL code Resources(opti onal)
  • 4. Structure of Assembly  Assembly manifest contains:  Assembly name  Version number of the assembly  Culture - language assembly supports  Strong name - required only for global assemblies  List of files in the assembly. An assembly can be made up of multiple files  Type reference information - informs which type is in which file of the assembly  Information about referenced assemblies - Contains list of other assemblies referenced by this assembly. For each assembly referenced we have assembly name, version, culture and public key (if assembly is a global assembly)
  • 5. Structure of Assembly  Type metadata  This section of an assembly contains information about all classes, structure etc. created in the assembly. MSIL Code  MSIL code of the assembly is placed in third part of the assembly. This MSIL is converted to native code by CLR at runtime. Resource  This section contains messages and pictures used by assembly.
  • 6. Private Assembly  A private assembly is an assembly that is deployed with an application and is available for the exclusive use of that application.  Other applications do not share the private assembly.  Private assemblies are one of the methods that can be used to create isolated applications.  It is stored in the directory where the application resides.  There is no version constraint in a private assembly. To use private assembly in any application, one needs to deploy them in the application's directory.
  • 7. Global Assembly  A global assembly is a public assembly that is shared by multiple applications.  Unlike private assembly,global assembly is not stored at location where application resides. Global assembly instead is placed in GAC (Global Assembly Cache) and it can be referenced anywhere within the system.  So only one copy is stored, but many applications can use that single copy.
  • 8. Assembly Placement  For most .NET Framework applications, assemblies that make up an application are located in the application's directory, in a subdirectory of the application's directory, or in the global assembly cache.  If the assembly needs is used by multiple applications then one should make it global else keep it private.