Click here to Skip to main content
15,899,754 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I created one DLL and added it to the Global Assembly Cache, but I cannot add a reference to it from my project. What might I be doing wrong here please?
Posted
Updated 23-Oct-10 12:36pm
v3
Comments
Toli Cuturicu 24-Oct-10 14:54pm    
Reboot...

Are you expecting the assembly to be visible from the references dialog in Visual Studio just because it was placed in the GAC? It doesn't work that way.
 
Share this answer
 
Comments
MrLonely_2 24-Oct-10 8:55am    
yes , i cannot see the dll from the references dialog in Visual Studio
[no name] 24-Oct-10 22:44pm    
http://www.csharp411.com/adding-assemblies-to-the-visual-studio-add-reference-dialog/
Have you added a strong name to your dll? To use a dll in the GAC, you need a strong name.
 
Share this answer
 
v2
Comments
MrLonely_2 24-Oct-10 8:54am    
yes , i make stonge name for assembly and added it to GAC
[no name] 24-Oct-10 22:45pm    
Dah! You can't add an assembly to the GAC without a strong name! Dah!
Abhinav S 25-Oct-10 0:22am    
I thought the OP was not able to add the dll to the GAC. My bad.

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