"Add Reference" Dialog doesn't show the installed assembly in GAC

M

Maxwell2006

Hi,



I am using Visual Studio 2005.



I have added a DLL into GAC. I can confirm that by going to
C:\WINDOWS\assembly and see the assembly name.



Now I am trying to use the assembly by adding a reference to it. In "Add
Reference" dialog box, I go to ".NET" tab, but I cannot find the assembly!



I assume that I am missing some steps here.



What do I miss?



Any help would be appreciated,

Max
 
G

Guest

I think maybe i can help you with this one. Did you notice that there is a
button on the dialog for adding references labled "Browse" Clicking this
will open the standard file open navigation dialog and you can just pluck
your assembly from any location that's accessable and after selecting it, it
will be added to the References section of your project and be available to
your project (can be a little tricky sometimes getting namespaces recognized,
but, basically it's "IT JUST WORKS" type technology ( pretty transparent)).
In other words, dealing with the GAC directly is not a necessary thing if all
you want is to add References to a project. On the other hand, If your real
goal is to get the assembly installed properly in the GAC and listed in the
..NET category of the Add ref dialog, sorry, of those areas I don't think my
experience is sufficient to advise.
 
M

Maxwell2006

I am sot sure Browse is proper way to deal with assemblies in GAC. AFAIK,
browse is for DLLs within folders other than GAC.
 
T

TerryFei

Hi Maxwell,
If Browse can't display the assemblies in GAC correctly, it is possible
that the issue is caused by the fact that the shfusion.dll extension didn't
register properly. So the shell extension didn't execute properly. If this
happens on your system, open a command prompt and enter the following from
the c:\winnt\Microsoft.net\framework\vXXX folder, where XXX represents the
version number of the .NET Framework that you're running. Search for the
shfusion.dll file, and use that folder. Here I've used the folder
representing my current .NET build:
c:\winnt\microsoft.net\framework\v1.0.3705>regsvr32 shfusion.dl

I hope the above information is helpful for you. Have a nice day!

Best Regards,

Terry Fei[MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
 

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