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