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?
Asked
Active
Viewed 445 times
2

Joel Coehoorn
- 399,467
- 113
- 570
- 794

Dmitri Nesteruk
- 23,067
- 22
- 97
- 166
-
I'm assuming Unity Application Block (the IoC Container) – ckramer Jun 23 '10 at 12:33
-
Yep, I'm talking about Unity application block :) – Dmitri Nesteruk Jun 23 '10 at 12:34
2 Answers
4
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.

Stephen Cleary
- 437,863
- 77
- 675
- 810