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