How to make our assemblies appeared in Add Reference dialog box

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.
assemblyFolders.gif Add-Reference%20dlg%20box.gif

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

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

转载于:https://www.cnblogs.com/losingmyself/archive/2005/05/09/151439.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值