28 references to PartialNameCompare
Microsoft.Build.Tasks.Core (1)
AssemblyDependency\Resolver.cs (1)
251bool matchPartialName = !wantSpecificVersion && assemblyName?.PartialNameCompare(targetAssemblyName) == true;
Microsoft.Build.Tasks.UnitTests (27)
AssemblyNameEx_Tests.cs (27)
343extension2.PartialNameCompare(extension); 420Assert.True(assemblyNameToMatch.PartialNameCompare(assemblyToCompare)); 422Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare)); 445Assert.True(assemblyNameToMatchVersion.PartialNameCompare(assemblyToCompare)); 448Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare)); 452Assert.True(assemblyMatchNoVersion.PartialNameCompare(assemblyToCompare)); 458Assert.False(assemblyNameToMatchVersion.PartialNameCompare(assemblyToCompare)); 461Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare)); 465Assert.True(assemblyMatchNoVersion.PartialNameCompare(assemblyToCompare)); 489Assert.True(assemblyNameToMatchCulture.PartialNameCompare(assemblyToCompare)); 492Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare)); 496Assert.True(assemblyMatchNoVersion.PartialNameCompare(assemblyToCompare)); 502Assert.False(assemblyNameToMatchCulture.PartialNameCompare(assemblyToCompare)); 505Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare)); 509Assert.True(assemblyMatchNoVersion.PartialNameCompare(assemblyToCompare)); 533Assert.True(assemblyNameToMatchPublicToken.PartialNameCompare(assemblyToCompare)); 536Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare)); 540Assert.True(assemblyMatchNoVersion.PartialNameCompare(assemblyToCompare)); 546Assert.False(assemblyNameToMatchPublicToken.PartialNameCompare(assemblyToCompare)); 549Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare)); 553Assert.True(assemblyMatchNoVersion.PartialNameCompare(assemblyToCompare)); 575Assert.True(assemblyNameToMatchRetargetable.PartialNameCompare(assemblyToCompare)); 578Assert.True(assemblyToCompare.PartialNameCompare(assemblyNameToNotMatch)); 581Assert.False(assemblyToCompare.PartialNameCompare(assemblyMatchNoRetargetable)); 584Assert.True(assemblyMatchNoRetargetable.PartialNameCompare(assemblyToCompare)); 592bool match = assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare); 603Assert.True(assemblyMatchNoRetargetable.PartialNameCompare(assemblyToCompare));