How to reference GAC assemblies using VS2005- how funny is this.

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Ive just discovered how I add a reference to an assembly in the GAC from a C# solution using VS2005.
 
I find it rather incredible that it is this difficult to do. And I really dont think Ive missed anything here.
 
1. Go into Registry and disable the GAC cache viewer:
 
HKLMSOFTWAREMicrosoftFusion, DisableCacheViewer- set to non zero.
 
You have to do this as the cache viewer prevents you from copying assemblies out from the GAC.
 
2. Go into the GAC folder and copy the assemblies you want to reference to somewhere else on your machine.
 
3. Add the reference from your solution by browsing to the copy of the assembly you made in step 2.
 
 
Thats ridiculous. I thought the idea of the GAC was to use it for shared assemblies. Why is it so difficult to use these assemblies from VS 2005??

View the full article
 
Back
Top