Can't see DLL in GAC

Posted on 2009-04-16
Last Modified: 2013-11-26
I added a DLL to the GAC but when I click to add a reference from my VS.NET 2008 project, I don't see the DLL under the .NET or COM tabs.  I added it like this:

  gacutil -i Microsoft.Interop.Security.AzRoles.dll

I can see the DLL in C:\WINDOWS\assembly.  Any ideas why it isn't showing?
Question by:brettr
    1 Comment
    LVL 15

    Accepted Solution

    The Add Reference dialog doesn't list Assemblies in the GAC, and according to this MSDN article you can't. "Note that you cannot add references from the Global Assembly Cache (GAC), as it is strictly part of the run-time environment."

    I've create a folder called "3rd party assemblies", and have referenced that to be enumerated by the Add Reference dialog. This is where I store all other assemblies:

    Just create a new registry key in "\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders" under either Local Machine or Current User.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now