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); }