How to make our assemblies appeared in Add Reference dialog box

原创 2005年05月28日 19:14:00

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.

NMAKE : U1073: don't know how to make 'TargetCompilePass'

  MSDN do not help, but one blog post help. magic! I will add a link for that blog.the post said:NMA...
  • knock
  • knock
  • 2009年11月02日 18:31
  • 1993

面试题05:Jaden Casing Strings

Jaden Smith, the son of Will Smith, is the star of films such as The Karate Kid (2010) and After Ear...
  • qq_32801733
  • qq_32801733
  • 2017年09月18日 16:12
  • 254

JavaScript趣题:Jaden Smith

Jaden Smith,Will Smith之子,是一位影视明星。 2010年主演了《功夫梦》,2013年主演了《重返地球》。 他最让人感兴趣的除了电影,还有他的Twitter,习惯在写Twitt...
  • esir82
  • esir82
  • 2016年09月08日 07:23
  • 609

How to make Decision Effectively

How to make Decision Effectively In theory, making decisions sounds really easy: you are given tw...
  • shenghuiping2001
  • shenghuiping2001
  • 2013年12月03日 19:22
  • 804


 No1 1.The following appeared in a memorandum written by the vice president of Natures Way, a chain ...
  • jxchinaren
  • jxchinaren
  • 2009年02月12日 14:02
  • 14245

uva10943 How do you add?

题意:把K个不超过N的非负整数加起来,使得它们的和为N,有多少种方法 思路:令dp[i][j]为和为i用了j个数的方案数,那么转移就是dp[i][j]=dp[i-1][j]+dp[i][j-1] ...
  • qq_21057881
  • qq_21057881
  • 2016年04月16日 22:14
  • 339

How To Skip Search Dialog Box

Sometimes you want to skip Search dialog box during the Page display when a component gets loaded. L...
  • WTK870424
  • WTK870424
  • 2012年01月08日 22:16
  • 586

C# VS 下的 Add Reference 并不一定可靠

一个外部的DLL挂载在 Project中后 , 一段时间要卸载,在Add Reference 中却怎么也找不到。 无奈只得打开 csproject  文件,手动找到相关引用,删除。 ...
  • norsd
  • norsd
  • 2012年09月04日 14:45
  • 1872

Cannot make a static reference to the non-static method xxx()

问题: 有代码形如XXXDao.getXXX(); 在Eclipse中书写时(即编译时)报形如“Cannot make a static reference to the non-static...
  • ylchou
  • ylchou
  • 2012年06月06日 18:45
  • 12407

VS 2010中优化了“Add Reference”(添加引用)的展现速度

     以前在VS 2008中,每次添加应用,在点击了“Add Reference”后,总是要经历一段漫长的等待,才能开始选择,这主要是由于一旦打开这个对话框,线程会自动搜索全部标签的全部可引用项,...
  • guilin_gavin
  • guilin_gavin
  • 2009年10月29日 23:23
  • 2084
您举报文章:How to make our assemblies appeared in Add Reference dialog box