.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Melody Anderson

Home >> Forum >> .NET Framework >> Post New QuestionBookmark and Share Subscribe to Forum

difference between shared and private assembly?

Posted By: Ramesh     Posted Date: August 05, 2010    Points:2   Category :.NET Framework
what is the exact difference between shared and private assembly .
for both we are adding the dll files through refereence.


Author: Sunil Yadav       [Moderator]      
Posted Date: August 06, 2010     Points: 5   


Shared assemblies as a name suggest can be shared among the applications. Lets say you have some business logic which is common for other applications , so you will place this assembly in GAC(Global Assembly Cache) to be shared by others.

Private assemblies are specific to a single application.

hope it helps.

Author: Mallikarjuna Chigicherla             
Posted Date: August 08, 2010     Points: 5   

Private Assembly:
This assembly for only single application means that assembly will not be appear for another application

Example: As adding Any dll to u r bin folder

To add a private assembly, from the solution Explorer
----Right click on u r website and select Add refernece next we have to browse and select dll

[/B] Shared Assembly:
This assembly for all dotnet appliacation .

To add a shared assembly, from the visual command line enter:
gacutil.exe /-i myassembly.dll

Thanks & Regards,
Mallikarjuna Chigicherla

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend