Why don't all items in the GAC Show up?

J

james

Quick Question --

When I Add Reference from .Net in Visual Studio it only shows a subset
of all the items I see at c:\windows\assembly. .Net works fine
pulling any of those assemblies from the GAC.. I feel like VS has a
separate registry of assemblies that are shown. What's up with
that?

Thanks!
James
 
M

Mattias Sjögren

When I Add Reference from .Net in Visual Studio it only shows a subset
of all the items I see at c:\windows\assembly. .Net works fine
pulling any of those assemblies from the GAC.. I feel like VS has a
separate registry of assemblies that are shown. What's up with
that?

You got it. The Add Reference dialog does not reflect the content of
the GAC (the GAC is only used at runtime when the CLR loads
assemblies). The dialog lists assemblies in a set of file system
directories (that you can modify in the Registry), such as the
framework directory %WINDIR%\Microsoft.NET\Framework\<version>



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top