Not able to find references in GAc in the reference window of VS IDE

I have a problem which I need the help you guys figure out.

I have to create a dll and deploy the same in GAC. And I need to add reference to that dll I deployed using the addreference window of the VS.net IDE in other projects, but even after I successfully installed the assembly I am not able to see in the refernce list of VS.net IDE. Let me explain the steps I done

1. Created an SN Key . sn -k "c:\Keys\ver1.snk"

2. Create a dll, and in the assemblyinfo.cs, I have given [assembly: AssemblyKeyFile("c:\Keys\ver1.snk")]

3. Deployed the assembly using gacutil -i <Mylocalpath of assembly> . I checked for this assebly name in c:\windows\assembly, its present there, so the deployment is successful

4. opend VS.net IDE, Created another project > Add reference > I checked for the assebly I just deployed in the GAC but I couldn't find that in the list of assemblies. Please tell me what I am missing here Why the assembly I deployed in the GAC is not listing out in the list of references in the Addreference window of VS.net

Thanks In Advance




Answer this question

Not able to find references in GAc in the reference window of VS IDE

  • msJen

    To add reference to your assembly

    From Add reference Dialog

    Select Browse tab then browse to c:\windows\assembly look for your assembly



  • VBE_programmer

     Arunkjose wrote:
    4. opend VS.net IDE, Created another project > Add reference > I checked for the assebly I just deployed in the GAC but I couldn't  find that in the list of assemblies. Please tell me what I am missing here
    The list of assemblies displayed in Add reference doesn't come from the GAC.  It just looks like it does because there is a lot of overlap between the two lists.

    There are several different ways you can make an assembly visible in the add reference dialog.  Which way is best for your situation depends on various factors such as whether you want the assembly visible to all projects from all usrs, all projects for a particular user or just one project.  It is all explained here: http://msdn2.microsoft.com/en-us/library/wkze6zky.aspx


  • Skip123123

    ok no probem let us try another solution to modify registry to dispay your assembly in add reference dialog under .Net tab

    the steps you will find it here

    How to display an assembly in the Add Reference dialog box



  • LonelyPixel

    No thats not working, I can see my assembly along with all the other assembly, but none of the assemblies from c:\windows\assembly folder can add to the references by Addreference dialog. Any better idea

    Thanks in advance



  • Not able to find references in GAc in the reference window of VS IDE