What is DevRel? | What is Developer Relations ?
A to Z Full Forms and Acronyms

Types of assemblies in .Net

Jun 24, 2021 Assemblies, assembly, 7755 Views
In this article you will learn about the types of assemblies

Types of Assemblies

There are three types of assemblies:

  • Private assemblies
  • Shared assemblies
  • Satellite assemblies

1. Private assemblies:-

A private assembly is an assembly that is available to a particular application where they are kept as a private assembly is used by the clients of the same application directory structure as the assembly.

With simple, .NET applications, using only private assemblies is the best way to work. No special management, registration, versioning, and so on is needed with private assemblies. The only application that could have version problems with private assemblies is your own application. Other applications are not influenced because they have their own copies of the assemblies. The private components you use within your application are installed at the same time as the application itself.

Private assemblies are located in the same directory as the application or subdirectories thereof. This way, you should not have any versioning problems with the application. No other application will even overwrite your private assemblies. Of course, it is still a good idea to use version numbers for private assemblies too. This helps a lot but it is not a requirement of .NET.

2. Shared assemblies:-

A shared assembly is a public assembly that is shared by multiple applications. With shared assemblies, several applications can use the same assembly and have a dependency on it. Shared assemblies reduce the need for disk and memory space. With shared assemblies, many rules must be fulfilled- a shared assembly must have a version number and a unique name, and usually, it is installed in the global assembly Cache (GAC). The GAC enables you to share different versions of the same assembly on a system.

3. Satellite assemblies:-

An assembly with cultural information is automatically assumed to be a satellite assembly. These assemblies are used in deploying global applications for different languages. Satellite assemblies are used to build multi-linguistic applications. These language-specific assemblies work in side-by-side execution because the application has a separate product ID for each language and installs satellite assemblies in a language-specifies subdirectory for each language.

A to Z Full Forms and Acronyms
Nitin Pandit

Nitin Pandit

With over 10 years of vast development experience with different technologies, Nitin Pandit is Microsoft certified Most Valued Professional (Microsoft MVP) with a rich skillset that includes developing and managing IT/Web-based applications in different technologies, such as – C#.NET, ADO.NET, LINQ to SQL, WCF, and ASP.NET 2.0/3.x/4.0, WCF, WPF, MVC 5.0 (Razor), and Silverlight, along with client-side programming techniques, like jQuery and AngularJS. Nitin possesses a Master’s degree in Computer Science and has been actively contributing to the development community for its betterment. He has written more than 100 blogs/articles and 3 eBooks on different technologies to help improve the knowledge of young technology professionals. He has trained more than one lakh students and professionals, as a speaker in workshops and AppFests, conducted in more than 25 universities in North India.

Related Article

Cookies.

By using this website, you automatically accept that we use cookies. What for?

Understood