开发者

If Unity is not in the GAC, how does VS know to show it in Add References?

开发者 https://www.devze.com 2023-01-04 06:33 出处:网络
I\'m trying to index the GAC and use the ResolveAssemblyReferences target. However, some assemblies (such as Unity application block) seem to 开发者_Go百科be missing from the GAC and yet VS happily sh

I'm trying to index the GAC and use the ResolveAssemblyReferences target. However, some assemblies (such as Unity application block) seem to 开发者_Go百科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?


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消