如何引用在Visual Studio安装在GAC一个自制组装? [英] How to reference a self made assembly that is installed in the GAC in visual studio?

查看:252
本文介绍了如何引用在Visual Studio安装在GAC一个自制组装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个自制的集会,我想我在GAC使用.net 2.0配置工具(mscorcfg.msu)但是,当我想引用它在Visual Studio中,我在哪里找到它正确安装呢?

I created a homemade assembly and I think I installed it correctly in the GAC using the .Net 2.0 configuration tool (mscorcfg.msu) However, when I want to reference it in visual studio, where do I find it?

(我知道,我不应该使用GAC无论如何,但放纵我; - ))

( I know, I should not use the GAC anyway, but indulge me ;-))

编辑:我没有问这个问题再清楚不过:安装装配到GAC后,它并没有项目,添加引用菜单中的.NET选项卡上显示出来。

I did not ask the question clear enough: After installing the assembly to the GAC, it does not show up on the .NET tab of the Project-Add Reference menu.

推荐答案

Add Reference对话框实际上看起来在注册表中,特别是:

The add reference dialog actually looks at the registry, in particular:

  • [HKEY_LOCAL_MACHINE] \ SOFTWARE \微软\ .NETFramework \ AssemblyFolders
  • [HKEY_CURRENT_USER] \ SOFTWARE \微软\ .NETFramework \ AssemblyFolders

要添加组件,则必须修改这些注册表项。或者干脆使用浏览...按钮(代替)可能会更加诱人。

To add your assembly, you must edit these registry keys. Or simply using the "Browse..." button (instead) may be more tempting.

这篇关于如何引用在Visual Studio安装在GAC一个自制组装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆