So, you created your super cool library and you want to be able to use it within your application. You maybe even installed it in the GAC. But, it doesn't show up in the Add Reference dialog unless you browse to it. What are you to do?
There are two approaches:
- Copy the assemblies to the C:\Windows\Microsoft.NET\Framework\v2.0.50727 folder (version may vary) or the C:\Program Files\Microsoft Visual Studio8\Common7\IDE folder.
- Add a special assembly folder key to the Registry
Personally, I believe the latter option is the best option and seems to be the method that third party vendors use. This method will cause Visual Studio to search the folder you specify in addition to the default folders. Here's what you need to do:
- Browse to the HKLM\Software\Microsoft\.NETFramework\AssemblyFolders key
- Add a new key with whatever name you want (keep in mind that you'll need a key for separate folders)
- Set the default value of the key to the folder where the assemblies are installed