My GAC Assembly not showing up in add references

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi everyone.

I have successfully added an assembly to the GAC and then refernced it in my
application. I wrote down everything I did, so that I wouldn't screw it up
again. I followed the same procedure again and now the assembly does not
appear in the 'add references' in Visual Studio.

My procedure is as follows:
Create SNK
Put SNK on Network drive (yes, it is secured big time)
In AssemblyInfo.vb, reference SNK on the network (yes, this does work, has
been tested here at this location)
Change Build type to 'Release'
Build Assembly
Copy Assembly to C:\%windir%\.NET Framework\Framework\v1.1.4322\
Open GAC Configurator
Add Assembly from c:\%windir%\.NET Framework\Framework\v1.1.4322\
Assembly IS seen in the GAC, correct version and everything.

I leave the Assembly in that directory.

This is the first version to the GAC.

When I go to the VS IDE, to add a reference, the assembly is not listed.
This had happened before, but it was due to the assembly NOT being copied to
the c:\%windir%\.NET Framework\Framework\v1.1.4322\ folder.

Assembly that worked:
DiB.GACTesting.dll

Assembly that did NOT work:
DiB.Strings.dll

We thought it MIGHT be because of 'Strings', so I renamed it to DiB.BOB.dll,
and had the same result (in GAC, not in 'add references').

What else should I be looking at to get this fixed. As always, it needs to
be working yesterday.
 
Add an Assembly into GAC only means it can be shared by more than one
application. The Refernce Dialogbox in VS.NET uses Windows registry to
locate available libraries (.NET or COM). In order to make your GAC'ed
library show up in Reference Dialogbox in VS.NET, you need to create
corresponding Registry Key in Windows Registry. I could not remember exactly
how to do that for now, go Google or MSKB should get you there.

Actually, even you have that Assembly in GAC, according to .NET
documentation, it is still recommended to set refence of your developing
project to the actual dll on your computer outside the GAC.
 
Back
Top