Skip to content

Commit

Permalink
Compare reference names up front (#68133)
Browse files Browse the repository at this point in the history
* Compare reference names up front
  • Loading branch information
333fred authored May 9, 2023
1 parent d2f3bcc commit c3cc1d0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c3cc1d0

Please sign in to comment.