Q:
I make a dll and put it in the global assembly cache (GAC),now i wanna to use this dll in my application , but i can’t see any reference to it.
When
Add reference ----> dialog window --->no reference to my shared assembly .i don’t see any reference .
how to fix this problem.
to make my shared assembly , i do the following:
1-Right click on my project file —> properties —>Signing tab —> choose a strong name.
2- In the AssemblyInfo.cs file add this line
[assembly: AssemblyKeyFile("C:\\Users\\just_name\\Downloads\\New folder\\testingGAC\\testingGAC\\key.snk")] then build the solution.
3- Drag the testingGAC.dll file into the assembly folder in my c:\
Is there any problems with these steps.
Thanks in advance.
The list of referenes doesn’t actually work off the GAC – there’s a registry key at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\AssemblyFolders that controls which folders get looked at when creating this list.
This link has the full low-down on the process