diff --git a/src/Compilers/Core/Portable/ReferenceManager/CommonReferenceManager.Resolution.cs b/src/Compilers/Core/Portable/ReferenceManager/CommonReferenceManager.Resolution.cs index 76e3aaa81f091..20c5e44e1e02b 100644 --- a/src/Compilers/Core/Portable/ReferenceManager/CommonReferenceManager.Resolution.cs +++ b/src/Compilers/Core/Portable/ReferenceManager/CommonReferenceManager.Resolution.cs @@ -935,6 +935,11 @@ internal static AssemblyReferenceBinding ResolveReferencedAssembly( { AssemblyIdentity definition = definitions[i].Identity; + if (!AssemblyIdentityComparer.SimpleNameComparer.Equals(reference.Name, definition.Name)) + { + continue; + } + switch (assemblyIdentityComparer.Compare(reference, definition)) { case AssemblyIdentityComparer.ComparisonResult.NotEquivalent: