What is the difference between public assembly and private assembly in .NET?

An assembly in .NET can be classified into two different types' namely public assembly and private assembly. Difference between these two types of assembly is tabulated below:


Public Assembly
Private Assembly
Public assembly can be used by multiple applications. Private assembly can be used by only one application.
Public assembly is stored in GAC (Global Assembly Cache). Private assembly will be stored in the specific application's directory or sub-directory.
Public assembly is also termed as shared assembly. There is no other name for private assembly.
Strong name has to be created for public assembly. Strong name is not required for private assembly.
Public assembly should strictly enforce version constraint. Private assembly doesn't have any version constraint.
An example to public assembly is the actuate report classes which can be imported in the library and used by any application that prefers to implement actuate reports. By default, all assemblies you create are examples of private assembly. Only when you associate a strong name to it and store it in GAC, it becomes a public assembly.

| Can you call a constructor from another constructor of the Class in .NET? | Difference between Response.Output.Write() method and Response.Write() method in .NET | How do you establish multiple inheritance in C#? | How do you introduce a ReadOnly property in C#? | How do you perform constructor overloading in C#? | Is catch(Exception) recommended to be used in .NET? | What are the different access modifiers available in C#? | What are the different ways of overloading in C#? | What are the members of stringbuilder class in C#? | What is Multicast Delegate? Explain it with example in C# | What is the difference between abstract class and interface in .NET? | What is the difference between Clone and CopyTo methods in .NET | What is the difference between const and readonly in .NET | What is the difference between directcast and ctype in .NET? | What is the difference between out and ref parameters in .NET | What is the difference between public assembly and private assembly in .NET | What is the difference between strong typing and weak typing in .NET? | What is the difference between Trace and Debug in .NET | What is the need for Abstract Factory Pattern in C#? | What is the need for Adapter Pattern in C# |


“Amazon and the Amazon logo are trademarks of Amazon.com, Inc. or its affiliates.”

| Privacy Policy for www.dotnet-guide.com | Disclosure | Contact |

Copyright - © 2004 - 2024 - All Rights Reserved.