Henrik,

>From the 'Add Reference' dialogue, browse to the physical location where
your assembly was registered into the GAC.

If you forgot where this was you can find out by looking at the
properties of your assembly in the GAC (assuming you have the fusion
shell extension installed) and examining the CodeBase property).

If you want your own assemblies top be listed in the 'Add Reference'
dialogue (whether installed in the GAC or not) you can do this:

In the registry go to :

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders\

Add a new subkey to the above:

e.g.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders\MyLi
bFiles

then edit the (Default) string path to point to the directory where the
assemblies are located:

e.g.

c:\AppsDev.Net\MyLibFiles


Hope this helps



Kev




>>-----Original Message-----
>>From: Henrik Enemark Rasmussen [mailto:[EMAIL PROTECTED]] 
>>Sent: 03 June 2002 14:35
>>To: [EMAIL PROTECTED]
>>Subject: [DOTNET] Reference to assembly in the GAC
>>
>>
>>I have an assembly installed in the GAC. Using Visual Studio 
>>.NET, how do I create a reference to this assembly in another 
>>project in another solution? Using Windows Explorer, I can 
>>see the assembly in the GAC and I can verify it's there with GacUtil.
>>
>>The assembly is not in the "Add Reference" dialog on any of 
>>the pages and I cannot browse to the assembly because the GAC 
>>hides the files behind a shell extension.
>>
>>regards
>>Henrik
>>
>>You can read messages from the DOTNET archive, unsubscribe 
>>from DOTNET, or subscribe to other DevelopMentor lists at 
>>http://discuss.develop.com.
>>

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to