如果Unity不在GAC中,VS如何知道在添加引用中显示它?

发布于 2024-09-06 21:13:42 字数 171 浏览 3 评论 0原文

我正在尝试为 GAC 建立索引并使用 ResolveAssemblyReferences 目标。然而,GAC 中似乎缺少一些程序集(例如 Unity 应用程序块),但 VS 很乐意在“添加引用”对话框中显示它们。我的问题:怎么会这样?我一直认为只有 GAC 注册的程序集才会出现在那里。我错过了什么吗?

I'm trying to index the GAC and use the ResolveAssemblyReferences target. However, some assemblies (such as Unity application block) seem to be missing from the GAC and yet VS happily shows them in the Add Reference dialog. My question: how can this be? I always thought that only GAC-registered assemblies appear there. Am I missing something?

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

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

发布评论

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

评论(2

瞄了个咪的 2024-09-13 21:13:42

除了ckramer提到的注册表设置外,还有HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v2.0.50727\AssemblyFoldersExHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319\ AssemblyFoldersEx

提示:如果您下载VS 2010 Pro Power Tools< /a> 扩展名,更新的“添加引用”对话框清楚地区分了框架程序集和框架扩展程序集。

In addition to the registry setting ckramer mentioned, there is also HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v2.0.50727\AssemblyFoldersEx and HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319\AssemblyFoldersEx.

Tip: if you download the VS 2010 Pro Power Tools extension, the updated "Add Reference" dialog clearly distinguishes between Framework assemblies and Framework Extension assemblies.

阳光①夏 2024-09-13 21:13:42

实际上有一个注册表设置,允许您将目录添加到位置列表中,Visual Studio 将在其中搜索要在“添加引用”对话框中显示的程序集。

这里是一个快速概述它在哪里以及如何向其添加您自己的路径。

There is actually a registry setting which allows you to add directories to the list of locations where Visual Studio will search for assemblies to display in the "Add References" dialog.

Here is a quick overview of where it is and how to add your own paths to it.

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