Where's my road?

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

I guess most of us may be confronted with a same issue: we can not see our assemblies displayed in Add Reference dialog box in Visual Studio .net.

Generally, an assembly may be used by several solutions, teams, or even companies. When a developer want to add a reference to an assembly for a solution in visual studio, he may prefer finding the assembly in the Add Reference dialog box without having to search for it. But how to implement that? Even if we install the assembly in the Global Assembly Cache(GAC), the issue is not resolved.

Actually, it's very simple to implement the function. The Add Reference dialog box is just path-based and does not enumerate components from the GAC, So we can add the path to the assembly for it. The detailed steps are:

  • Run regedit, and search for the registry key HKEY_CURRENT_USER\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders
  • Create a sub registry key with any name your prefer, and set the full path to the assembly as its default value.
  • Then you can see your assembly displayed in the Add Reference dialog box.

For more information, please visit How to display an assembly in the Add Reference dialog box.

posted on 2005-05-09 10:36  Lin  阅读(1609)  评论(6编辑  收藏  举报