56 instantiations of AssemblyNameExtension
Microsoft.Build (6)
AssemblyNameExtension.cs (4)
69
private static readonly AssemblyNameExtension s_unnamedAssembly = new
AssemblyNameExtension
();
190
return new
AssemblyNameExtension
(AssemblyName.GetAssemblyName(path));
597
AssemblyNameExtension newExtension =
new
();
990
(ITranslator t) => new
AssemblyNameExtension
(t),
TaskEngineAssemblyResolver.cs (2)
124
AssemblyNameExtension taskAssemblyName = new
AssemblyNameExtension
(AssemblyLoadContext.GetAssemblyName(_taskAssemblyFile));
125
AssemblyNameExtension argAssemblyName = new
AssemblyNameExtension
(assemblyName);
Microsoft.Build.Engine.UnitTests (50)
AssemblyNameEx_Tests.cs (50)
72
return new
AssemblyNameExtension
(name);
77
return new
AssemblyNameExtension
(name.ToLower());
82
return new
AssemblyNameExtension
(new AssemblyName(name));
87
return new
AssemblyNameExtension
(new AssemblyName(name.ToLower()));
92
AssemblyNameExtension result = new
AssemblyNameExtension
(new AssemblyName(name));
329
AssemblyNameExtension extension = new
AssemblyNameExtension
("Version=2.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a", true);
341
AssemblyNameExtension extension = new
AssemblyNameExtension
("Version=2.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a");
342
AssemblyNameExtension extension2 = new
AssemblyNameExtension
("A, Version=2.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a");
354
AssemblyNameExtension extension = new
AssemblyNameExtension
("A, Version=2.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a");
360
extension = new
AssemblyNameExtension
("A, Version=2.0.0.0, PublicKeyToken=b03f5f7f11d50a3a");
366
extension = new
AssemblyNameExtension
("A, Culture=en, PublicKeyToken=b03f5f7f11d50a3a");
372
extension = new
AssemblyNameExtension
("A, PublicKeyToken=b03f5f7f11d50a3a");
378
extension = new
AssemblyNameExtension
("A");
390
AssemblyNameExtension extension = new
AssemblyNameExtension
("A, Version=2.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a, ProcessorArchitecture=MSIL");
398
extension = new
AssemblyNameExtension
("A, Version=2.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a");
413
AssemblyNameExtension assemblyNameToMatch = new
AssemblyNameExtension
("System.Xml");
414
AssemblyNameExtension assemblyNameToNotMatch = new
AssemblyNameExtension
("System.Xmla");
418
AssemblyNameExtension assemblyToCompare = new
AssemblyNameExtension
(assembly);
433
AssemblyNameExtension assemblyNameToMatchVersion = new
AssemblyNameExtension
("System.Xml, Version=10.0.0.0");
434
AssemblyNameExtension assemblyNameToNotMatch = new
AssemblyNameExtension
("System.Xml, Version=5.0.0.0");
435
AssemblyNameExtension assemblyMatchNoVersion = new
AssemblyNameExtension
("System.Xml");
439
AssemblyNameExtension assemblyToCompare = new
AssemblyNameExtension
(assembly);
477
AssemblyNameExtension assemblyNameToMatchCulture = new
AssemblyNameExtension
("System.Xml, Culture=en");
478
AssemblyNameExtension assemblyNameToNotMatch = new
AssemblyNameExtension
("System.Xml, Culture=de-DE");
479
AssemblyNameExtension assemblyMatchNoVersion = new
AssemblyNameExtension
("System.Xml");
483
AssemblyNameExtension assemblyToCompare = new
AssemblyNameExtension
(assembly);
521
AssemblyNameExtension assemblyNameToMatchPublicToken = new
AssemblyNameExtension
("System.Xml, PublicKeyToken=b03f5f7f11d50a3a");
522
AssemblyNameExtension assemblyNameToNotMatch = new
AssemblyNameExtension
("System.Xml, PublicKeyToken=b03f5f7f11d50a3b");
523
AssemblyNameExtension assemblyMatchNoVersion = new
AssemblyNameExtension
("System.Xml");
527
AssemblyNameExtension assemblyToCompare = new
AssemblyNameExtension
(assembly);
565
AssemblyNameExtension assemblyNameToMatchRetargetable = new
AssemblyNameExtension
("System.Xml, Version=10.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a, Retargetable=Yes");
566
AssemblyNameExtension assemblyNameToNotMatch = new
AssemblyNameExtension
("System.Xml, Version=10.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a, Retargetable=No");
567
AssemblyNameExtension assemblyMatchNoRetargetable = new
AssemblyNameExtension
("System.Xml");
571
AssemblyNameExtension assemblyToCompare = new
AssemblyNameExtension
(assembly);
616
AssemblyNameExtension a = new
AssemblyNameExtension
("System.Xml, Version=10.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a, Retargetable=Yes");
617
AssemblyNameExtension b = new
AssemblyNameExtension
("System.Xml, Version=10.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a, Retargetable=No");
618
AssemblyNameExtension c = new
AssemblyNameExtension
("System.Xml, Version=10.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a, Retargetable=Yes");
620
AssemblyNameExtension d = new
AssemblyNameExtension
("System.Xml, Version=9.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a, Retargetable=No");
621
AssemblyNameExtension e = new
AssemblyNameExtension
("System.Xml, Version=11.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a, Retargetable=No");
648
AssemblyNameExtension x = new
AssemblyNameExtension
("System, Version=2.0.0.0");
649
AssemblyNameExtension y = new
AssemblyNameExtension
("System, Version=1.0.0.0");
650
AssemblyNameExtension z = new
AssemblyNameExtension
("System, Version=2.0.0.0");
651
AssemblyNameExtension a = new
AssemblyNameExtension
("Zar, Version=3.0.0.0");
682
AssemblyNameExtension assemblyNameOriginal = new
AssemblyNameExtension
(assemblyName);
688
writeTranslator.Translate(ref assemblyNameOriginal, (ITranslator t) => new
AssemblyNameExtension
(t));
693
readTranslator.Translate(ref assemblyNameDeserialized, (ITranslator t) => new
AssemblyNameExtension
(t));
701
AssemblyNameExtension assemblyNameOriginal = new
AssemblyNameExtension
("System.Xml, Version=10.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a");
702
AssemblyNameExtension assemblyRemappedFrom = new
AssemblyNameExtension
("System.Xml, Version=9.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a");
712
writeTranslator.Translate(ref assemblyNameOriginal, (ITranslator t) => new
AssemblyNameExtension
(t));
717
readTranslator.Translate(ref assemblyNameDeserialized, (ITranslator t) => new
AssemblyNameExtension
(t));
118 references to AssemblyNameExtension
Microsoft.Build (54)
AssemblyNameComparer.cs (18)
16
internal sealed class AssemblyNameComparer : IComparer, IEqualityComparer, IEqualityComparer<
AssemblyNameExtension
>
31
internal static readonly IEqualityComparer<
AssemblyNameExtension
> GenericComparer = Comparer as IEqualityComparer<
AssemblyNameExtension
>;
36
internal static readonly IEqualityComparer<
AssemblyNameExtension
> GenericComparerConsiderRetargetable = ComparerConsiderRetargetable as IEqualityComparer<
AssemblyNameExtension
>;
56
AssemblyNameExtension
a1 = (
AssemblyNameExtension
)o1;
57
AssemblyNameExtension
a2 = (
AssemblyNameExtension
)o2;
68
AssemblyNameExtension
a1 = (
AssemblyNameExtension
)o1;
69
AssemblyNameExtension
a2 = (
AssemblyNameExtension
)o2;
78
AssemblyNameExtension
a = (
AssemblyNameExtension
)o;
87
public bool Equals(
AssemblyNameExtension
x,
AssemblyNameExtension
y)
96
public int GetHashCode(
AssemblyNameExtension
obj)
AssemblyNameExtension.cs (30)
56
internal sealed class AssemblyNameExtension : ISerializable, IEquatable<
AssemblyNameExtension
>, ITranslatable
67
private HashSet<
AssemblyNameExtension
> remappedFrom;
69
private static readonly
AssemblyNameExtension
s_unnamedAssembly = new AssemblyNameExtension();
170
remappedFrom = (HashSet<
AssemblyNameExtension
>)info.GetValue("remapped", typeof(HashSet<
AssemblyNameExtension
>));
186
internal static
AssemblyNameExtension
GetAssemblyNameEx(string path)
229
private static HashSet<
AssemblyNameExtension
> CreateRemappedFrom()
231
return new HashSet<
AssemblyNameExtension
>(AssemblyNameComparer.GenericComparerConsiderRetargetable);
370
internal IEnumerable<
AssemblyNameExtension
> RemappedFromEnumerator
382
internal void AddRemappedAssemblyName(
AssemblyNameExtension
extensionToAdd)
433
internal static
AssemblyNameExtension
UnnamedAssembly => s_unnamedAssembly;
440
internal int CompareTo(
AssemblyNameExtension
that)
448
internal int CompareTo(
AssemblyNameExtension
that, bool considerRetargetableFlag)
498
internal int CompareBaseNameTo(
AssemblyNameExtension
that)
526
private int CompareBaseNameToImpl(
AssemblyNameExtension
that)
595
internal
AssemblyNameExtension
Clone()
597
AssemblyNameExtension
newExtension = new();
619
internal
AssemblyNameExtension
CloneImmutable()
621
AssemblyNameExtension
clonedExtension = Clone();
644
internal bool Equals(
AssemblyNameExtension
that)
654
bool IEquatable<
AssemblyNameExtension
>.Equals(
AssemblyNameExtension
other)
664
internal bool EqualsIgnoreVersion(
AssemblyNameExtension
that)
672
internal bool Equals(
AssemblyNameExtension
that, bool considerRetargetableFlag)
680
private bool EqualsImpl(
AssemblyNameExtension
that, bool ignoreVersion, bool considerRetargetableFlag)
768
internal bool ComparePublicKeyToken(
AssemblyNameExtension
that)
860
internal bool PartialNameCompare(
AssemblyNameExtension
that)
868
internal bool PartialNameCompare(
AssemblyNameExtension
that, bool considerRetargetableFlag)
881
internal bool PartialNameCompare(
AssemblyNameExtension
that, PartialComparisonFlags comparisonFlags)
894
internal bool PartialNameCompare(
AssemblyNameExtension
that, PartialComparisonFlags comparisonFlags, bool considerRetargetableFlag)
AssemblyNameReverseVersionComparer.cs (4)
13
internal sealed class AssemblyNameReverseVersionComparer : IComparer<
AssemblyNameExtension
>
18
internal static readonly IComparer<
AssemblyNameExtension
> GenericComparer = new AssemblyNameReverseVersionComparer();
29
public int Compare(
AssemblyNameExtension
x,
AssemblyNameExtension
y)
TaskEngineAssemblyResolver.cs (2)
124
AssemblyNameExtension
taskAssemblyName = new AssemblyNameExtension(AssemblyLoadContext.GetAssemblyName(_taskAssemblyFile));
125
AssemblyNameExtension
argAssemblyName = new AssemblyNameExtension(assemblyName);
Microsoft.Build.Engine.UnitTests (64)
AssemblyNameEx_Tests.cs (64)
27
internal delegate
AssemblyNameExtension
ProduceAssemblyNameEx(string name);
70
private static
AssemblyNameExtension
ProduceAsString(string name)
75
private static
AssemblyNameExtension
ProduceAsLowerString(string name)
80
private static
AssemblyNameExtension
ProduceAsAssemblyName(string name)
85
private static
AssemblyNameExtension
ProduceAsLowerAssemblyName(string name)
90
private static
AssemblyNameExtension
ProduceAsBoth(string name)
92
AssemblyNameExtension
result = new AssemblyNameExtension(new AssemblyName(name));
100
private static
AssemblyNameExtension
ProduceAsLowerBoth(string name)
125
AssemblyNameExtension
a1 = produce1(assemblyString1);
126
AssemblyNameExtension
a2 = produce2(assemblyString2);
160
AssemblyNameExtension
a1 = produce1(assemblyString1);
161
AssemblyNameExtension
a2 = produce2(assemblyString2);
206
AssemblyNameExtension
a1 = s_producers[0](s_assemblyStrings[0]);
220
Assert.Equal(0, String.Compare(
AssemblyNameExtension
.EscapeDisplayNameCharacters(displayName), @"Hello\,\""Don\'t\"" eat the \\CAT", StringComparison.OrdinalIgnoreCase));
244
AssemblyNameExtension
a1 = produce1(assemblyString1);
245
AssemblyNameExtension
a2 = produce2(assemblyString2);
249
AssemblyNameExtension
a3 = ProduceAsAssemblyName(assemblyString1);
250
AssemblyNameExtension
a4 = ProduceAsString(assemblyString2);
285
AssemblyNameExtension
a1 = produce1(assemblyString1);
286
AssemblyNameExtension
a2 = produce2(assemblyString2);
290
AssemblyNameExtension
a3 = ProduceAsAssemblyName(assemblyString1);
291
AssemblyNameExtension
a4 = ProduceAsString(assemblyString2);
311
AssemblyNameExtension
a1 = ProduceAsBoth("System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a");
312
AssemblyNameExtension
a2 = ProduceAsString("System.Drawing");
329
AssemblyNameExtension
extension = new AssemblyNameExtension("Version=2.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a", true);
341
AssemblyNameExtension
extension = new AssemblyNameExtension("Version=2.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a");
342
AssemblyNameExtension
extension2 = new AssemblyNameExtension("A, Version=2.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a");
354
AssemblyNameExtension
extension = new AssemblyNameExtension("A, Version=2.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a");
390
AssemblyNameExtension
extension = new AssemblyNameExtension("A, Version=2.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a, ProcessorArchitecture=MSIL");
413
AssemblyNameExtension
assemblyNameToMatch = new AssemblyNameExtension("System.Xml");
414
AssemblyNameExtension
assemblyNameToNotMatch = new AssemblyNameExtension("System.Xmla");
418
AssemblyNameExtension
assemblyToCompare = new AssemblyNameExtension(assembly);
433
AssemblyNameExtension
assemblyNameToMatchVersion = new AssemblyNameExtension("System.Xml, Version=10.0.0.0");
434
AssemblyNameExtension
assemblyNameToNotMatch = new AssemblyNameExtension("System.Xml, Version=5.0.0.0");
435
AssemblyNameExtension
assemblyMatchNoVersion = new AssemblyNameExtension("System.Xml");
439
AssemblyNameExtension
assemblyToCompare = new AssemblyNameExtension(assembly);
477
AssemblyNameExtension
assemblyNameToMatchCulture = new AssemblyNameExtension("System.Xml, Culture=en");
478
AssemblyNameExtension
assemblyNameToNotMatch = new AssemblyNameExtension("System.Xml, Culture=de-DE");
479
AssemblyNameExtension
assemblyMatchNoVersion = new AssemblyNameExtension("System.Xml");
483
AssemblyNameExtension
assemblyToCompare = new AssemblyNameExtension(assembly);
521
AssemblyNameExtension
assemblyNameToMatchPublicToken = new AssemblyNameExtension("System.Xml, PublicKeyToken=b03f5f7f11d50a3a");
522
AssemblyNameExtension
assemblyNameToNotMatch = new AssemblyNameExtension("System.Xml, PublicKeyToken=b03f5f7f11d50a3b");
523
AssemblyNameExtension
assemblyMatchNoVersion = new AssemblyNameExtension("System.Xml");
527
AssemblyNameExtension
assemblyToCompare = new AssemblyNameExtension(assembly);
565
AssemblyNameExtension
assemblyNameToMatchRetargetable = new AssemblyNameExtension("System.Xml, Version=10.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a, Retargetable=Yes");
566
AssemblyNameExtension
assemblyNameToNotMatch = new AssemblyNameExtension("System.Xml, Version=10.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a, Retargetable=No");
567
AssemblyNameExtension
assemblyMatchNoRetargetable = new AssemblyNameExtension("System.Xml");
571
AssemblyNameExtension
assemblyToCompare = new AssemblyNameExtension(assembly);
616
AssemblyNameExtension
a = new AssemblyNameExtension("System.Xml, Version=10.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a, Retargetable=Yes");
617
AssemblyNameExtension
b = new AssemblyNameExtension("System.Xml, Version=10.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a, Retargetable=No");
618
AssemblyNameExtension
c = new AssemblyNameExtension("System.Xml, Version=10.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a, Retargetable=Yes");
620
AssemblyNameExtension
d = new AssemblyNameExtension("System.Xml, Version=9.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a, Retargetable=No");
621
AssemblyNameExtension
e = new AssemblyNameExtension("System.Xml, Version=11.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a, Retargetable=No");
648
AssemblyNameExtension
x = new AssemblyNameExtension("System, Version=2.0.0.0");
649
AssemblyNameExtension
y = new AssemblyNameExtension("System, Version=1.0.0.0");
650
AssemblyNameExtension
z = new AssemblyNameExtension("System, Version=2.0.0.0");
651
AssemblyNameExtension
a = new AssemblyNameExtension("Zar, Version=3.0.0.0");
662
List<
AssemblyNameExtension
> assemblies = new List<
AssemblyNameExtension
>();
682
AssemblyNameExtension
assemblyNameOriginal = new AssemblyNameExtension(assemblyName);
683
AssemblyNameExtension
assemblyNameDeserialized = null;
701
AssemblyNameExtension
assemblyNameOriginal = new AssemblyNameExtension("System.Xml, Version=10.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a");
702
AssemblyNameExtension
assemblyRemappedFrom = new AssemblyNameExtension("System.Xml, Version=9.0.0.0, Culture=en, PublicKeyToken=b03f5f7f11d50a3a");
707
AssemblyNameExtension
assemblyNameDeserialized = null;