22 references to PartialNameCompare
Microsoft.Build.Tasks.Core (2)
AssemblyDependency\FrameworkPathResolver.cs (1)
90
if (assemblyName.
PartialNameCompare
(current, PartialComparisonFlags.Culture | PartialComparisonFlags.PublicKeyToken))
RedistList.cs (1)
456
if (firstAssembly.
PartialNameCompare
(secondAssembly, PartialComparisonFlags.SimpleName | PartialComparisonFlags.PublicKeyToken | PartialComparisonFlags.Culture))
Microsoft.Build.Tasks.UnitTests (20)
AssemblyNameEx_Tests.cs (20)
421
Assert.True(assemblyNameToMatch.
PartialNameCompare
(assemblyToCompare, PartialComparisonFlags.SimpleName));
423
Assert.False(assemblyNameToNotMatch.
PartialNameCompare
(assemblyToCompare, PartialComparisonFlags.SimpleName));
446
Assert.True(assemblyNameToMatchVersion.
PartialNameCompare
(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.Version));
449
Assert.False(assemblyNameToNotMatch.
PartialNameCompare
(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.Version));
453
Assert.True(assemblyMatchNoVersion.
PartialNameCompare
(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.Version));
459
Assert.False(assemblyNameToMatchVersion.
PartialNameCompare
(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.Version));
462
Assert.False(assemblyNameToNotMatch.
PartialNameCompare
(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.Version));
466
Assert.True(assemblyMatchNoVersion.
PartialNameCompare
(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.Version));
490
Assert.True(assemblyNameToMatchCulture.
PartialNameCompare
(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.Culture));
493
Assert.False(assemblyNameToNotMatch.
PartialNameCompare
(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.Culture));
497
Assert.True(assemblyMatchNoVersion.
PartialNameCompare
(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.Culture));
503
Assert.False(assemblyNameToMatchCulture.
PartialNameCompare
(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.Culture));
506
Assert.False(assemblyNameToNotMatch.
PartialNameCompare
(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.Culture));
510
Assert.True(assemblyMatchNoVersion.
PartialNameCompare
(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.Culture));
534
Assert.True(assemblyNameToMatchPublicToken.
PartialNameCompare
(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.PublicKeyToken));
537
Assert.False(assemblyNameToNotMatch.
PartialNameCompare
(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.PublicKeyToken));
541
Assert.True(assemblyMatchNoVersion.
PartialNameCompare
(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.PublicKeyToken));
547
Assert.False(assemblyNameToMatchPublicToken.
PartialNameCompare
(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.PublicKeyToken));
550
Assert.False(assemblyNameToNotMatch.
PartialNameCompare
(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.PublicKeyToken));
554
Assert.True(assemblyMatchNoVersion.
PartialNameCompare
(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.PublicKeyToken));