<------ GAC奇怪的问题: 无法添加引用已正确安装到GAC中的DLL ------>

BlueDog 2006-04-18 11:39:22
我生成了一个类,比如说Test.DLL,它具有强名称
用 Gacutil /i test.dll 将其正确安装到了GAC中
并用 gacutil /l test 可以找到此DLL

但是我在VS2003中新建一个项目后,进行添加引用,在其窗口中无法找到此DLL
...全文
218 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
BlueDog 2006-04-19
  • 打赏
  • 举报
回复
非常正确,我找了一下资料,
SUMMARY
When you are developing a class library, you may want Visual Studio .NET to list your library in the Add Reference dialog box on the .NET tab without the user having to browse for it.

This issue is not resolved if you install your assembly to the Global Assembly Cache (GAC), because the Add Reference dialog box is path-based and does not enumerate the components from the GAC.

To display your assembly in the Add Reference dialog box, you can add a registry key, such as the following, which points to the location of the assembly
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders\MyAssemblies]@="C:\\MyAssemblies"

谢谢ggyz
ggyz 2006-04-18
  • 打赏
  • 举报
回复
这是两码事.要在添加引用中看到,需要在注册表中注册.

110,534

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧