Friday, January 23, 2009

What are private and global assemblies?

We are aware that .NET assembly is comprised of Metadata, Manifest & MSIL (Intermediate Language) code.
So this assembly is created with all these set of values.
An assembly could be private or public.
Public mean like, the same assembly is shared among multiple applications.
Private assembly says that the assembly is very specific to the application and cannot be shared. It is stored in bind directory of the application or application folder.

We can make a private assembly to be shared globally shared and there are few steps which need to be considered for doing so.
Once if a private assembly is made to be global, t can further be referred by other applications
To make an assembly as global, it has to be strongly named, which gives unique identity with version as well.
Below example explains how an assembly can be differentiated in use.

No comments:

Post a Comment