在 Framework 4 应用程序中添加引用未显示使用 GACUtil V 4 注册的 GAC 中的程序集

发布于 2024-10-10 12:33:56 字数 342 浏览 0 评论 0原文

我已经使用 VS2010(版本 4ish)附带的 GACUtil 在本地 GAC 中注册了一个 dll,

dll

我可以执行 gacutil /l xxx 并且它找到了我从 Framework 4 的各种其他帖子中了解到的 有它自己的 GAC,并且该文件确实可以位于 C:\WINDOWS\Microsoft.NET\ assembly 内的目录中。

对我来说,问题是“添加引用”对话框上的 .NET 选项卡确实不显示我的“GAC”程序集。

我已经确保项目属性使用相同版本的 4.0 框架,但我目前不知所措。

还有其他人遇到过这个问题吗?

提前欢呼

I've registered a dll in my local GAC using the GACUtil which comes with VS2010 (version 4ish)

I can perform gacutil /l xxx and it finds the dll

I am aware from various other posts that Framework 4 has it's own GAC and sure enough the file can be located in the directories within C:\WINDOWS\Microsoft.NET\assembly

The problem for me, is that the .NET tab on the Add Reference dialogbox does not show my "GAC'ed" assembly.

I've made sure that the projects properties are using the same version of the 4.0 framework, but I am currently at a loss.

Has anyone else had this problem?

Cheers in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

可是我不能没有你 2024-10-17 12:33:57

“添加引用”窗口不会列出 GAC 中的程序集。 Visual Studio 保留自己的路径列表来搜索要在该窗口中列出的程序集。有关如何使您的程序集显示在该列表中,特别是在标题“在添加引用对话框中显示程序集”下

The "Add Reference" window does not list assemblies in the GAC. Visual Studio keeps it's own list of paths to search for assemblies to list in that window. See here for instructions on how to make your assembly show up in that list, specifically under the heading "To display an assembly in the Add Reference dialog box"

清音悠歌 2024-10-17 12:33:57

作为替代方案...

通过 web.config 添加 dll 的更手动方式是可能的。

使用程序集节点

http://msdn.microsoft.com/en-us/library /bfyb45k1.aspx

您可能需要的任何信息都可以使用 gacutil /l <程序集名称> 找到

Just as an alternative...

A more manual way of adding the dlls via the web.config is possible.

using the assemblies node

http://msdn.microsoft.com/en-us/library/bfyb45k1.aspx

any information you may need can be found by using the gacutil /l <name of assembly>

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文