Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear All Experts,

How to convert private assembly to shared Assembly please give me an example in Dot Net Frame work

Thank you for your valuable replay.
Posted
Updated 25-Oct-11 0:15am
v2

 
Share this answer
 
Comments
RaisKazi 25-Oct-11 6:22am    
My 5!
This famous concept is known as - "Global Assembly Cache".

Have a look at below links for more information on this.
http://msdn.microsoft.com/en-us/library/yf1d93sz%28v=VS.100%29.aspx

http://msdn.microsoft.com/en-us/library/6axd4fx6.aspx
 
Share this answer
 
To make assembly shared you need to strongly sign it and add it to GAC.

Select the check box from
project properties>>Signing tab>>Sign the assembly

Create a strong key
Choose a strong name key file: >> new
enter the Key file name:
enter password
reenter password
Strong name key will be created.

Alternate way to create strong name
sn -k "C:\[DirectoryToPlaceKey]\[KeyName].key" 


Host the signed assembly in Global Assembly Cache
gacutil -I "C:\[PathToBinDirectoryInVSProject]\myGAC.dll" 
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900