Base of difference | Public Assembly | Private Assembly |
Number of application | Public assembly can be used by multiple applications. | On the other hand private assembly can be used by one application. |
Location | Public assembly is generlly stored at Global Assembly Cache(GAC). | On the other hand private assembly can be stored in any specific application directory or in sub directory. |
Strong Name | We will create a strong name for Public assembly. | On the other hand no strong name is required for private assemble. |
Version constraint | Public assembly should strictly enforce version constraint. | Private assembly doesn't have any version constraint. |
Other Name | Other name of Public assembly is shared assembly. | There is no other name for private assembly |
Example | To understand public assembly we will take an example of actuate report classes which can be imported in the library and used by any application that prefers to implement actuate reports. | On the other hand be default all assemblies we create are example of private assembly.Only when you associate a strong name to it and store it in GAC, it becomes a public assembly.
|