如果Unity不在GAC中,VS如何知道在添加引用中显示它?
我正在尝试为 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
除了ckramer提到的注册表设置外,还有
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v2.0.50727\AssemblyFoldersEx
和HKEY_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
andHKEY_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.
实际上有一个注册表设置,允许您将目录添加到位置列表中,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.