From 866361ec1243030120a3178e93086cd95211964b Mon Sep 17 00:00:00 2001 From: nrpog Date: Wed, 28 Jan 2015 11:30:21 +0000 Subject: [PATCH] Fix to allow assemblies with the same name (useful when scanning multiple directories). --- gendarme/framework/Gendarme.Framework/AssemblyResolver.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gendarme/framework/Gendarme.Framework/AssemblyResolver.cs b/gendarme/framework/Gendarme.Framework/AssemblyResolver.cs index d5fc1c1ef..af1ae9a4a 100644 --- a/gendarme/framework/Gendarme.Framework/AssemblyResolver.cs +++ b/gendarme/framework/Gendarme.Framework/AssemblyResolver.cs @@ -75,7 +75,7 @@ public void CacheAssembly (AssemblyDefinition assembly) if (assembly == null) throw new ArgumentNullException ("assembly"); - assemblies.Add (assembly.Name.Name, assembly); + assemblies[assembly.Name.Name] = assembly; string location = Path.GetDirectoryName (assembly.MainModule.FullyQualifiedName); AddSearchDirectory (location); }