How to reference GAC assemblies using VS2005- how funny is this.
DeanB61
On the end user's PC, the assemblies can be installed into the GAC, and will thus automatically be used if they are present.
That's the way we work with our own, and third-party, assemblies (which is why we don't get any problems).
I think the key thing is: Development PC <> User PC
Game Squirrel
If you want to reference an assembly that is not in the GAC, just click the browse button and browse to it. Just make sure that you include these referenced assemblies in your installation.
blackwidow25
flep
Bdenison
jstamets
recordus
Why on earth would you want to copy assemblies from the GAC and move them outside of it In many ways you are causing yourself more problems without knowing it.
In VS2005 when you add a reference, from within the .NET tab you are being shown all of the assemblies that are located on the system... those within the directory X:\Windows\Microsoft.NET\Framework\v2.0.50727 and other similar dirs (where X is the drive you have the framework installed to) are in the GAC. Remember, as far as the actual file locations are concerned, the GAC is just a set of folders with logic running elsewhere that manages which file is which and which version is which.
When you copy files from the GAC and use them externally... yes, you are still referencing them... only when you run your app later, the assemblies you copied out are not being used, instead those in the GAC are because of the way the runtime locates assemblies (http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconhowruntimelocatesassemblies.asp).
Ramachandran.d
Yes, I am referencing our own assemblies.
Yes, we signed them, otherwise we wouldn't have been able to get them in the GAC.
I haven't had any problems adding them to the GAC.
The difficulty comes when you want to reference GAC assemblies from another solution.
And lots of people are complaining about it, but seemingly there are lots of people that don't need to reference assemblies in the GAC which I find quite suprising, as lots of people haven't come across this problem. ![]()

How to reference GAC assemblies using VS2005- how funny is this.
Solomonsd21
What exactly is the assembly that you are trying to reference
I've had no problem with any assembly in the GAC, so I can only assume that there's something gone a bit screwy on your system, or there's a bug on all systems with some of the assemblies, but they are assemblies that most people don't want to reference.
If you say which assembly you are trying to reference, I'll have a look on my system to see if it's there.
[EDIT] Ah, I see it's one of your own assemblies that you've added to the GAC. Is that correct Did you strong-name sign your assembly
I've had no problems adding my own assemblies to the GAC. You can be sure that if it didn't work, there'd be LOTS of people complaining about it! Therefore, I must assume that there's a bug that doesn't affect many people, or there's something funny about your assemblies or how you're adding them to the GAC.
BAnVA