276 references to AssemblyIdentity
Microsoft.CodeAnalysis (7)
Desktop\DesktopAssemblyIdentityComparer.cs (2)
232return new AssemblyIdentity( 294return new AssemblyIdentity(
Emit\ErrorType.cs (1)
215private static readonly AssemblyIdentity s_identity = new AssemblyIdentity(
MetadataReference\AssemblyIdentity.cs (2)
539return new AssemblyIdentity( 552return new AssemblyIdentity(
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
434identity = new AssemblyIdentity(simpleName, version, culture, hasPublicKey ? publicKey : publicKeyToken, hasPublicKey, isRetargetable, contentType);
MetadataReference\AssemblyIdentityUtils.cs (1)
39return new AssemblyIdentity(name, version, cultureName, publicKeyOrToken, hasPublicKey);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
39return new AssemblyIdentity(name, version, cultureName, publicKeyOrToken, hasPublicKey);
Microsoft.CodeAnalysis.CSharp (3)
Compilation\CSharpCompilation.cs (1)
1520: new MissingNamespaceSymbol(new MissingModuleSymbol(new MissingAssemblySymbol(new AssemblyIdentity(System.Guid.NewGuid().ToString())), ordinal: -1));
Symbols\MissingCorLibrarySymbol.cs (1)
35: base(new AssemblyIdentity("<Missing Core Assembly>"))
Symbols\Retargeting\RetargetingModuleSymbol.cs (1)
213new AssemblyIdentity(name: originatingSourceAssemblyDebugOnly.Name) :
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (6)
Emit\EditAndContinue\AssemblyReferencesTests.cs (6)
303((SourceAssemblySymbol)lib0.Assembly).lazyAssemblyIdentity = new AssemblyIdentity("Lib", version0); 307((SourceAssemblySymbol)lib1.Assembly).lazyAssemblyIdentity = new AssemblyIdentity("Lib", version1); 311((SourceAssemblySymbol)lib2.Assembly).lazyAssemblyIdentity = new AssemblyIdentity("Lib", version2); 387((SourceAssemblySymbol)lib0.Assembly).lazyAssemblyIdentity = new AssemblyIdentity("Lib", new Version(1, 0, 2000, 1001)); 391((SourceAssemblySymbol)lib1.Assembly).lazyAssemblyIdentity = new AssemblyIdentity("Lib", new Version(1, 0, 2000, 1002)); 395((SourceAssemblySymbol)lib2.Assembly).lazyAssemblyIdentity = new AssemblyIdentity("Lib", new Version(1, 0, 2000, 1003));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (16)
OverloadResolutionPriorityTests.cs (6)
664var comp1_1 = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.StandardReferences); 665var comp1_2 = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.StandardReferences); 712var comp1_1 = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.StandardReferences); 713var comp1_2 = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.StandardReferences); 773var comp1_1 = CreateCompilation(new AssemblyIdentity("Base", new Version(1, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.StandardReferences); 774var comp1_2 = CreateCompilation(new AssemblyIdentity("Base", new Version(2, 0, 0, 0), isRetargetable: true), source1, TargetFrameworkUtil.StandardReferences);
Semantics\CollectionExpressionTests.cs (2)
38820var comp = CreateCompilation(new AssemblyIdentity(assemblyName, new Version(1, 0, 0, 0)), sourceA1, references: TargetFrameworkUtil.StandardReferences); 38843comp = CreateCompilation(new AssemblyIdentity(assemblyName, new Version(2, 0, 0, 0)), sourceA2, references: TargetFrameworkUtil.StandardReferences);
Semantics\ExperimentalAttributeTests.cs (8)
926var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 927var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 963var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 964var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 991var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 992var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 1028var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 1029var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (14)
Semantics\InheritanceBindingTests.cs (2)
2995var comp11 = CreateCompilation(new AssemblyIdentity("lib1", new Version("4.2.1.0"), publicKeyOrToken: SigningTestHelpers.PublicKey, hasPublicKey: true), 2998var comp12 = CreateCompilation(new AssemblyIdentity("lib1", new Version("4.1.0.0"), publicKeyOrToken: SigningTestHelpers.PublicKey, hasPublicKey: true),
Semantics\NativeIntegerTests.cs (8)
845var comp = CreateCompilation(new AssemblyIdentity(assemblyName, new Version(1, 0, 0, 0)), new[] { source1 }, references: null); 883comp = CreateCompilation(new AssemblyIdentity(assemblyName, new Version(2, 0, 0, 0)), new[] { source2 }, references: null); 956var comp = CreateCompilation(new AssemblyIdentity(assemblyName, new Version(1, 0, 0, 0)), new[] { source1 }, references: null); 1000comp = CreateCompilation(new AssemblyIdentity(assemblyName, new Version(2, 0, 0, 0)), new[] { source2 }, references: null); 1049var comp = CreateCompilation(new AssemblyIdentity(assemblyName, new Version(1, 0, 0, 0)), new[] { sourceA }, references: references); 1052comp = CreateCompilation(new AssemblyIdentity(assemblyName, new Version(2, 0, 0, 0)), new[] { sourceA }, references: references); 1137var comp = CreateCompilation(new AssemblyIdentity("9ef8b1e0-1ae0-4af6-b9a1-00f2078f299e", new Version(1, 0, 0, 0)), new[] { source1 }, references: null); 1217var comp = CreateCompilation(new AssemblyIdentity("c804cc09-8f73-44a1-9cfe-9567bed1def6", new Version(1, 0, 0, 0)), new[] { source1 }, references: null);
Semantics\RefFieldTests.cs (4)
27153var assemblyIdentity = new AssemblyIdentity("System.Runtime", new System.Version(majorVersion, 0, 0, 0)); 27210var assemblyIdentityLowerVersion = new AssemblyIdentity("System.Runtime", new System.Version(6, 0, 0, 0)); 27214var assemblyIdentityHigherVersion = new AssemblyIdentity("System.Runtime", new System.Version(higherVersion, 0, 0, 0)); 27278var assemblyIdentity = new AssemblyIdentity(assemblyName, new System.Version(majorVersion, minorVersion, 0, 0));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (67)
Symbols\CompilationCreationTests.cs (36)
683var varMTTestLib1_V1_Name = new AssemblyIdentity("MTTestLib1", new Version("1.0.0.0")); 698var varMTTestLib2_Name = new AssemblyIdentity("MTTestLib2"); 723var c2 = CreateCompilation(new AssemblyIdentity("c2"), 755var varMTTestLib1_V2_Name = new AssemblyIdentity("MTTestLib1", new Version("2.0.0.0")); 774var varMTTestLib3_Name = new AssemblyIdentity("MTTestLib3"); 816var c3 = CreateCompilation(new AssemblyIdentity("c3"), 877var varMTTestLib1_V3_Name = new AssemblyIdentity("MTTestLib1", new Version("3.0.0.0")); 900var varMTTestLib4_Name = new AssemblyIdentity("MTTestLib4"); 952var c4 = CreateCompilation(new AssemblyIdentity("c4"), 1057var c5 = CreateCompilation(new AssemblyIdentity("c5"), 1066var c6 = CreateCompilation(new AssemblyIdentity("c6"), 1075var c7 = CreateCompilation(new AssemblyIdentity("c7"), 1143var c8 = CreateCompilation(new AssemblyIdentity("c8"), 1157var c9 = CreateCompilation(new AssemblyIdentity("c9"), 1166var c10 = CreateCompilation(new AssemblyIdentity("c10"), 1419var varMTTestLib2_Name = new AssemblyIdentity("MTTestLib2"); 1430var c2 = CreateCompilation(new AssemblyIdentity("c2"), 1466var varMTTestLib3_Name = new AssemblyIdentity("MTTestLib3"); 1485var c3 = CreateCompilation(new AssemblyIdentity("c3"), 1551var varMTTestLib4_Name = new AssemblyIdentity("MTTestLib4"); 1573var c4 = CreateCompilation(new AssemblyIdentity("c4"), 1678var c5 = CreateCompilation(new AssemblyIdentity("c5"), 1690var c6 = CreateCompilation(new AssemblyIdentity("c6"), 1702var c7 = CreateCompilation(new AssemblyIdentity("c7"), 1779var c8 = CreateCompilation(new AssemblyIdentity("c8"), 1798var c9 = CreateCompilation(new AssemblyIdentity("c9"), 1810var c10 = CreateCompilation(new AssemblyIdentity("c10"), 2067var localC1_V1_Name = new AssemblyIdentity("c1", new Version("1.0.0.0")); 2089var localC1_V2_Name = new AssemblyIdentity("c1", new Version("2.0.0.0")); 2111var localC4_V1_Name = new AssemblyIdentity("c4", new Version("1.0.0.0")); 2126var localC4_V2_Name = new AssemblyIdentity("c4", new Version("2.0.0.0")); 2141var c7 = CreateCompilation(new AssemblyIdentity("C7"), 2156var c3 = CreateCompilation(new AssemblyIdentity("C3"), 2245var c5 = CreateCompilation(new AssemblyIdentity("C5"), 2534var c1_Name = new AssemblyIdentity("c1"); 2556var c2_Name = new AssemblyIdentity("MTTestLib2");
Symbols\GenericConstraintTests.cs (2)
7326new AssemblyIdentity("remapped", new Version("1.0.0.0"), publicKeyOrToken: SigningTestHelpers.PublicKey, hasPublicKey: true), 7332new AssemblyIdentity("remapped", new Version("2.0.0.0"), publicKeyOrToken: SigningTestHelpers.PublicKey, hasPublicKey: true),
Symbols\Metadata\PE\MissingTypeReferences.cs (10)
325var defaultName = new AssemblyIdentity("missing"); 330missingTypes1[3] = new MissingMetadataTypeSymbol.TopLevel(new MissingAssemblySymbol(new AssemblyIdentity("asm1")).Modules[0], "", "test1", 0, true); 331missingTypes1[4] = new MissingMetadataTypeSymbol.TopLevel(new MissingAssemblySymbol(new AssemblyIdentity("asm1")).Modules[0], "", "test1", 1, true); 332missingTypes1[5] = new MissingMetadataTypeSymbol.TopLevel(new MissingAssemblySymbol(new AssemblyIdentity("asm1")).Modules[0], "", "test2", 0, true); 333missingTypes1[6] = new MissingMetadataTypeSymbol.TopLevel(new MissingAssemblySymbol(new AssemblyIdentity("asm2")).Modules[0], "", "test1", 0, true); 346missingTypes2[3] = new MissingMetadataTypeSymbol.TopLevel(new MissingAssemblySymbol(new AssemblyIdentity("asm1")).Modules[0], "", "test1", 0, true); 347missingTypes2[4] = new MissingMetadataTypeSymbol.TopLevel(new MissingAssemblySymbol(new AssemblyIdentity("asm1")).Modules[0], "", "test1", 1, true); 348missingTypes2[5] = new MissingMetadataTypeSymbol.TopLevel(new MissingAssemblySymbol(new AssemblyIdentity("asm1")).Modules[0], "", "test2", 0, true); 349missingTypes2[6] = new MissingMetadataTypeSymbol.TopLevel(new MissingAssemblySymbol(new AssemblyIdentity("asm2")).Modules[0], "", "test1", 0, true); 376var missingAssembly = new MissingAssemblySymbol(new AssemblyIdentity("asm1"));
Symbols\MockAssemblySymbol.cs (1)
28get { return new AssemblyIdentity(_name); }
Symbols\MockSymbolTests.cs (1)
66AssemblyIdentity missingAssemblyId = new AssemblyIdentity("goo");
Symbols\RequiredMembersTests.cs (10)
2193var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2205var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2242var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2270var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2288var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2300var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2548var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2558var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2579var originalC = CreateCompilation(new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences); 2589var retargetedC = CreateCompilation(new AssemblyIdentity("Ret", new Version(2, 0, 0, 0), isRetargetable: true), retargetedCode, TargetFrameworkUtil.StandardReferences);
Symbols\Retargeting\RetargetExplicitInterfaceImplementation.cs (4)
24new AssemblyIdentity("Assembly1"), 105new AssemblyIdentity("Assembly2"), 318new AssemblyIdentity("Assembly1"), 363new AssemblyIdentity("Assembly2"),
Symbols\Retargeting\RetargetingTests.cs (3)
933var retargetedIdentity = new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true); 1005var originalIdentity = new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true); 1083var originalIdentity = new AssemblyIdentity("Ret", new Version(1, 0, 0, 0), isRetargetable: true);
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (6)
EvaluationContextBase.cs (6)
21internal static readonly AssemblyIdentity SystemIdentity = new AssemblyIdentity("System"); 22internal static readonly AssemblyIdentity SystemCoreIdentity = new AssemblyIdentity("System.Core"); 23internal static readonly AssemblyIdentity SystemLinqIdentity = new AssemblyIdentity("System.Linq"); 24internal static readonly AssemblyIdentity SystemXmlIdentity = new AssemblyIdentity("System.Xml"); 25internal static readonly AssemblyIdentity SystemXmlLinqIdentity = new AssemblyIdentity("System.Xml.Linq"); 26internal static readonly AssemblyIdentity MicrosoftVisualBasicIdentity = new AssemblyIdentity("Microsoft.VisualBasic");
Microsoft.CodeAnalysis.Scripting (1)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\MonoGlobalAssemblyCache.cs (1)
129var assemblyIdentity = new AssemblyIdentity(
Microsoft.CodeAnalysis.UnitTests (111)
MetadataReferences\AssemblyIdentityDisplayNameTests.cs (40)
126var id = new AssemblyIdentity("goo"); 129id = new AssemblyIdentity("goo", new Version(1, 2, 3, 4)); 132id = new AssemblyIdentity("goo", cultureName: "en-US"); 138id = new AssemblyIdentity("goo", isRetargetable: true); 141id = new AssemblyIdentity("goo", contentType: AssemblyContentType.WindowsRuntime); 144id = new AssemblyIdentity("Goo", publicKeyOrToken: RoPublicKey1, hasPublicKey: true); 153id = new AssemblyIdentity("Goo", cultureName: "neutral"); 156id = new AssemblyIdentity("Goo", cultureName: " '\t\r\n\\=, "); 326var ai = new AssemblyIdentity(simpleName); 362new AssemblyIdentity("fo'o", new Version(1, 0, 0, 0), "zz-ZZ", RoPublicKeyToken1, hasPublicKey: false, isRetargetable: false, contentType: AssemblyContentType.Default), 375new AssemblyIdentity("goo"), N | AssemblyIdentityParts.Unknown); 383new AssemblyIdentity("goo", new Version(1, 0, 0, 0)), NVC); 386new AssemblyIdentity("goo", new Version(1, 0, 0, 0), "en-US", RoPublicKeyToken1, hasPublicKey: false, isRetargetable: true), 390new AssemblyIdentity("goo", new Version(1, 0, 0, 1), publicKeyOrToken: RoPublicKey1, hasPublicKey: true), 394new AssemblyIdentity("Goo", cultureName: " '\t\r\n\\=, "), 424new AssemblyIdentity("goo", new Version(1, 0, 0, 0)), N | AssemblyIdentityParts.VersionMajor); 426TestParseDisplayName("goo, Version=.", new AssemblyIdentity("goo"), N); 427TestParseDisplayName("goo, Version=..", new AssemblyIdentity("goo"), N); 428TestParseDisplayName("goo, Version=...", new AssemblyIdentity("goo"), N); 431new AssemblyIdentity("goo", cultureName: "en-US"), 510new AssemblyIdentity("goo", new Version(1, 0, 0, 1), cultureName: "null"), NVC); 513new AssemblyIdentity("goo", new Version(1, 0, 0, 1), cultureName: "en-US"), NVC); 516new AssemblyIdentity("goo", new Version(1, 0, 0, 1), cultureName: "en-US"), NVC); 519new AssemblyIdentity("goo", new Version(1, 0, 0, 1), cultureName: "en-US"), NVC); 522new AssemblyIdentity("goo", new Version(1, 0, 0, 1)), NV); 524TestParseDisplayName("goo, Culture=*", new AssemblyIdentity("goo"), N); 529new AssemblyIdentity("Goo", new Version(1, 0, 0, 0), cultureName: null), NVCT); 537new AssemblyIdentity("goo", new Version(1, 0, 0, 1)), NVT); 540new AssemblyIdentity("goo", new Version(1, 0, 0, 1)), NVT); 543new AssemblyIdentity("goo", new Version(1, 0, 0, 1)), NV); 549new AssemblyIdentity("goo", new Version(1, 0, 0, 1)), NV); 568new AssemblyIdentity("goo", new Version(1, 0, 0, 0), publicKeyOrToken: RoPublicKey1, hasPublicKey: true), NVC | AssemblyIdentityParts.PublicKeyOrToken); 577new AssemblyIdentity("goo", new Version(1, 0, 0, 1), contentType: AssemblyContentType.WindowsRuntime), NV | AssemblyIdentityParts.ContentType); 580new AssemblyIdentity("goo", new Version(1, 0, 0, 1)), NV); 591new AssemblyIdentity("goo", new Version(1, 0, 0, 0), publicKeyOrToken: RoPublicKeyToken1, isRetargetable: true), 595new AssemblyIdentity("goo", new Version(1, 0, 0, 0), publicKeyOrToken: RoPublicKeyToken1), 599new AssemblyIdentity("goo", new Version(1, 0, 0, 0), publicKeyOrToken: RoPublicKeyToken1), 606new AssemblyIdentity("goo", new Version(1, 0, 0, 1)), NV); 609new AssemblyIdentity("goo", new Version(1, 0, 0, 1)), NV | AssemblyIdentityParts.Retargetability, 613new AssemblyIdentity("goo", new Version(1, 0, 0, 1), isRetargetable: true), NV | AssemblyIdentityParts.Retargetability,
MetadataReferences\AssemblyIdentityMapTests.cs (16)
19map.Add(new AssemblyIdentity("a", new Version(1, 0, 0, 0)), 10); 20map.Add(new AssemblyIdentity("a", new Version(1, 8, 0, 0)), 18); 21map.Add(new AssemblyIdentity("a", new Version(1, 5, 0, 0)), 15); 23map.Add(new AssemblyIdentity("b", new Version(1, 0, 0, 0)), 10); 24map.Add(new AssemblyIdentity("b", new Version(1, 0, 0, 0)), 20); 27Assert.True(map.Contains(new AssemblyIdentity("a", new Version(1, 0, 0, 0)))); 28Assert.True(map.TryGetValue(new AssemblyIdentity("a", new Version(1, 0, 0, 0)), out value)); 31Assert.True(map.Contains(new AssemblyIdentity("a", new Version(1, 1, 0, 0)))); 32Assert.True(map.TryGetValue(new AssemblyIdentity("a", new Version(1, 1, 0, 0)), out value)); 35Assert.True(map.Contains(new AssemblyIdentity("a", new Version(1, 0, 0, 0)), allowHigherVersion: false)); 36Assert.True(map.TryGetValue(new AssemblyIdentity("a", new Version(1, 0, 0, 0)), out value, allowHigherVersion: false)); 39Assert.False(map.Contains(new AssemblyIdentity("a", new Version(1, 1, 0, 0)), allowHigherVersion: false)); 40Assert.False(map.TryGetValue(new AssemblyIdentity("a", new Version(1, 1, 0, 0)), out value, allowHigherVersion: false)); 43Assert.False(map.Contains(new AssemblyIdentity("b", new Version(1, 1, 0, 0)), allowHigherVersion: true)); 44Assert.False(map.Contains(new AssemblyIdentity("b", new Version(1, 1, 0, 0)), allowHigherVersion: false)); 47Assert.True(map.TryGetValue(new AssemblyIdentity("b", new Version(1, 0, 0, 0)), out value));
MetadataReferences\AssemblyIdentityTests.cs (38)
22var id1 = new AssemblyIdentity("Goo", new Version(1, 0, 0, 0), "", RoPublicKey1, hasPublicKey: true, isRetargetable: false); 23var id11 = new AssemblyIdentity("Goo", new Version(1, 0, 0, 0), "", RoPublicKey1, hasPublicKey: true, isRetargetable: false); 24var id2 = new AssemblyIdentity("Goo", new Version(1, 0, 0, 0), "", RoPublicKeyToken1, hasPublicKey: false, isRetargetable: false); 25var id22 = new AssemblyIdentity("Goo", new Version(1, 0, 0, 0), "", RoPublicKeyToken1, hasPublicKey: false, isRetargetable: false); 27var id3 = new AssemblyIdentity("Goo!", new Version(1, 0, 0, 0), "", RoPublicKeyToken1, hasPublicKey: false, isRetargetable: false); 28var id4 = new AssemblyIdentity("Goo", new Version(1, 0, 1, 0), "", RoPublicKeyToken1, hasPublicKey: false, isRetargetable: false); 29var id5 = new AssemblyIdentity("Goo", new Version(1, 0, 0, 0), "en-US", RoPublicKeyToken1, hasPublicKey: false, isRetargetable: false); 30var id6 = new AssemblyIdentity("Goo", new Version(1, 0, 0, 0), "", default(ImmutableArray<byte>), hasPublicKey: false, isRetargetable: false); 31var id7 = new AssemblyIdentity("Goo", new Version(1, 0, 0, 0), "", RoPublicKey1, hasPublicKey: true, isRetargetable: true); 33var win1 = new AssemblyIdentity("Goo", new Version(1, 0, 0, 0), "", RoPublicKey1, hasPublicKey: true, isRetargetable: false, contentType: AssemblyContentType.WindowsRuntime); 34var win2 = new AssemblyIdentity("Bar", new Version(1, 0, 0, 0), "", RoPublicKey1, hasPublicKey: true, isRetargetable: false, contentType: AssemblyContentType.WindowsRuntime); 35var win3 = new AssemblyIdentity("Goo", new Version(1, 0, 0, 0), "", RoPublicKey1, hasPublicKey: true, isRetargetable: false, contentType: AssemblyContentType.WindowsRuntime); 67var neutral1 = new AssemblyIdentity("Goo", new Version(1, 0, 0, 0), "NEUtral", RoPublicKeyToken1, hasPublicKey: false, isRetargetable: false); 68var neutral2 = new AssemblyIdentity("Goo", new Version(1, 0, 0, 0), null, RoPublicKeyToken1, hasPublicKey: false, isRetargetable: false); 69var neutral3 = new AssemblyIdentity("Goo", new Version(1, 0, 0, 0), "neutral", RoPublicKeyToken1, hasPublicKey: false, isRetargetable: false); 70var invariant = new AssemblyIdentity("Goo", new Version(1, 0, 0, 0), "", RoPublicKeyToken1, hasPublicKey: false, isRetargetable: false); 143var id = new AssemblyIdentity("Goo", hasPublicKey: false, isRetargetable: false); 154id = new AssemblyIdentity("Goo", publicKeyOrToken: RoPublicKey1, hasPublicKey: true, isRetargetable: false); 165id = new AssemblyIdentity("Goo", publicKeyOrToken: RoPublicKeyToken1, hasPublicKey: false, isRetargetable: true); 176id = new AssemblyIdentity("Goo", publicKeyOrToken: RoPublicKey1, hasPublicKey: true, isRetargetable: true); 187id = new AssemblyIdentity("Goo", publicKeyOrToken: RoPublicKey1, hasPublicKey: true, contentType: AssemblyContentType.WindowsRuntime); 202var id1 = new AssemblyIdentity("Goo", new Version(1, 0, 0, 0), "", RoPublicKey1, hasPublicKey: true, isRetargetable: false); 205var id2 = new AssemblyIdentity("Goo", new Version(1, 0, 0, 0), "", RoPublicKeyToken1, hasPublicKey: false, isRetargetable: false); 208var id3 = new AssemblyIdentity("Goo", new Version(1, 0, 0, 0), "", ImmutableArray<byte>.Empty, hasPublicKey: false, isRetargetable: false); 213var id4 = new AssemblyIdentity("Goo", new Version(1, 0, 0, 0), "", ImmutableArray<byte>.Empty, hasPublicKey: false, isRetargetable: false, contentType: AssemblyContentType.WindowsRuntime); 216var id5 = new AssemblyIdentity("Goo", new Version(1, 0, 0, 0), "", RoPublicKeyToken1, hasPublicKey: false, isRetargetable: false, contentType: AssemblyContentType.WindowsRuntime); 223Assert.Throws<ArgumentException>(() => new AssemblyIdentity("xx\0xx")); 224Assert.Throws<ArgumentException>(() => new AssemblyIdentity("")); 225Assert.Throws<ArgumentException>(() => new AssemblyIdentity(null)); 228() => new AssemblyIdentity("Goo", new Version(1, 0, 0, 0), "", ImmutableArray<byte>.Empty, hasPublicKey: true, isRetargetable: false, contentType: AssemblyContentType.Default)); 244Assert.Throws<ArgumentOutOfRangeException>(() => new AssemblyIdentity("Goo", v)); 247Assert.Throws<ArgumentOutOfRangeException>(() => new AssemblyIdentity("Goo", contentType: (AssemblyContentType)(-1))); 248Assert.Throws<ArgumentOutOfRangeException>(() => new AssemblyIdentity("Goo", contentType: (AssemblyContentType)int.MaxValue)); 251new AssemblyIdentity("Goo", publicKeyOrToken: RoPublicKey1, hasPublicKey: true, isRetargetable: true, contentType: AssemblyContentType.WindowsRuntime)); 309var ai = new AssemblyIdentity("goo"); 322ai = new AssemblyIdentity("goo", new Version(1, 2, 3, 4), "en-US", RoPublicKey1, 340ai = new AssemblyIdentity(c.ToString()); 358var ai = new AssemblyIdentity("goo", cultureName: "*");
MetadataReferences\FusionAssemblyIdentityTests.cs (8)
89RoundTrip(new AssemblyIdentity("goo").ToAssemblyName()); 92var name = new AssemblyIdentity("goo", version: new Version(0xffff, 0xffff, 0xffff, 0xffff)).ToAssemblyName(); 98RoundTrip(new AssemblyIdentity("goo", version: new Version(1, 2, 3, 4)).ToAssemblyName()); 101RoundTrip(new AssemblyIdentity("goo", cultureName: CultureInfo.CurrentCulture.Name).ToAssemblyName()); 102RoundTrip(new AssemblyIdentity("goo", cultureName: "").ToAssemblyName()); 105RoundTrip(new AssemblyIdentity("goo", version: new Version(1, 2, 3, 4), cultureName: "en-US").ToAssemblyName()); 109RoundTrip(new AssemblyIdentity("goo", isRetargetable: true).ToAssemblyName()); 110RoundTrip(new AssemblyIdentity("goo", contentType: AssemblyContentType.WindowsRuntime).ToAssemblyName());
MetadataReferences\ModuleMetadataTests.cs (9)
43Assert.Equal(new AssemblyIdentity("Members"), metadata.Module.ReadAssemblyIdentityOrThrow()); 69Assert.Equal(new AssemblyIdentity("Members"), metadata.Module.ReadAssemblyIdentityOrThrow()); 191Assert.Equal(new AssemblyIdentity("Members"), metadata.Module.ReadAssemblyIdentityOrThrow()); 219Assert.Equal(new AssemblyIdentity("Members"), metadata.Module.ReadAssemblyIdentityOrThrow()); 246Assert.Equal(new AssemblyIdentity("Members"), metadata.Module.ReadAssemblyIdentityOrThrow()); 277Assert.Equal(new AssemblyIdentity("Members"), metadata.Module.ReadAssemblyIdentityOrThrow()); 310Assert.Equal(new AssemblyIdentity("Members"), metadata.Module.ReadAssemblyIdentityOrThrow()); 341Assert.Equal(new AssemblyIdentity("Members"), metadata.Module.ReadAssemblyIdentityOrThrow()); 377Assert.Equal(new AssemblyIdentity("Members"), metadata.Module.ReadAssemblyIdentityOrThrow());
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\MissingAssemblySymbol.vb (1)
210MyBase.New(New AssemblyIdentity("<Missing Core Assembly>"))
Symbols\Retargeting\RetargetingModuleSymbol.vb (1)
198New AssemblyIdentity(name:=originatingSourceAssemblyDebugOnly.Name),
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (40)
SymbolsTests\CompilationCreationTests.vb (29)
673Dim varMTTestLib2_Name = New AssemblyIdentity("MTTestLib2") 689Dim c2 = CreateEmptyCompilation(New AssemblyIdentity("c2"), Nothing, 718Dim varMTTestLib3_Name = New AssemblyIdentity("MTTestLib3") 742Dim c3 = CreateEmptyCompilation(New AssemblyIdentity("c3"), Nothing, {NetFramework.mscorlib, varC_MTTestLib2.ToMetadataReference(), varC_MTTestLib1_V2.ToMetadataReference(), varC_MTTestLib3.ToMetadataReference()}) 792Dim varMTTestLib4_Name = New AssemblyIdentity("MTTestLib4") 830Dim c4 = CreateEmptyCompilation(New AssemblyIdentity("c4"), 902Dim c5 = CreateEmptyCompilation(New AssemblyIdentity("c5"), Nothing, {NetFramework.mscorlib, varC_MTTestLib3.ToMetadataReference()}) 906Dim c6 = CreateEmptyCompilation(New AssemblyIdentity("c6"), Nothing, {NetFramework.mscorlib, varC_MTTestLib2.ToMetadataReference()}) 910Dim c7 = CreateEmptyCompilation(New AssemblyIdentity("c6"), Nothing, {NetFramework.mscorlib, varC_MTTestLib2.ToMetadataReference(), varC_MTTestLib3.ToMetadataReference(), varC_MTTestLib4.ToMetadataReference()}) 952Dim c8 = CreateEmptyCompilation(New AssemblyIdentity("c8"), Nothing, 966Dim c9 = CreateEmptyCompilation(New AssemblyIdentity("c9"), Nothing, {NetFramework.mscorlib, varC_MTTestLib4.ToMetadataReference()}) 971Dim c10 = CreateEmptyCompilation(New AssemblyIdentity("c10"), Nothing, 1146Dim varMTTestLib2_Name = New AssemblyIdentity("MTTestLib2") 1154Dim c2 = CreateEmptyCompilation(New AssemblyIdentity("c2"), 1177Dim varMTTestLib3_Name = New AssemblyIdentity("MTTestLib3") 1192Dim c3 = CreateEmptyCompilation(New AssemblyIdentity("c3"), 1236Dim varMTTestLib4_Name = New AssemblyIdentity("MTTestLib4") 1254Dim c4 = CreateEmptyCompilation(New AssemblyIdentity("c4"), 1328Dim c5 = CreateEmptyCompilation(New AssemblyIdentity("c5"), 1338Dim c6 = CreateEmptyCompilation(New AssemblyIdentity("c6"), 1348Dim c7 = CreateEmptyCompilation(New AssemblyIdentity("c7"), 1404Dim c8 = CreateEmptyCompilation(New AssemblyIdentity("c8"), 1426Dim c9 = CreateEmptyCompilation(New AssemblyIdentity("c9"), 1436Dim c10 = CreateEmptyCompilation(New AssemblyIdentity("c10"), 1689Dim c7 As VisualBasicCompilation = CreateEmptyCompilation(New AssemblyIdentity("C7"), 1763Dim c3 As VisualBasicCompilation = CreateEmptyCompilation(New AssemblyIdentity("C3"), 1781Dim c5 As VisualBasicCompilation = CreateEmptyCompilation(New AssemblyIdentity("C5"), 1971Dim c1_Name = New AssemblyIdentity("c1") 1997Dim c2_Name = New AssemblyIdentity("MTTestLib2")
SymbolsTests\Metadata\PE\MissingTypeReferences.vb (10)
428Dim defaultName = New AssemblyIdentity("missing") 433missingTypes1(3) = New MissingMetadataTypeSymbol.TopLevel(New MissingAssemblySymbol(New AssemblyIdentity("asm1")).Modules(0), "", "test1", 0, True) 434missingTypes1(4) = New MissingMetadataTypeSymbol.TopLevel(New MissingAssemblySymbol(New AssemblyIdentity("asm1")).Modules(0), "", "test1", 1, True) 435missingTypes1(5) = New MissingMetadataTypeSymbol.TopLevel(New MissingAssemblySymbol(New AssemblyIdentity("asm1")).Modules(0), "", "test2", 0, True) 436missingTypes1(6) = New MissingMetadataTypeSymbol.TopLevel(New MissingAssemblySymbol(New AssemblyIdentity("asm2")).Modules(0), "", "test1", 0, True) 449missingTypes2(3) = New MissingMetadataTypeSymbol.TopLevel(New MissingAssemblySymbol(New AssemblyIdentity("asm1")).Modules(0), "", "test1", 0, True) 450missingTypes2(4) = New MissingMetadataTypeSymbol.TopLevel(New MissingAssemblySymbol(New AssemblyIdentity("asm1")).Modules(0), "", "test1", 1, True) 451missingTypes2(5) = New MissingMetadataTypeSymbol.TopLevel(New MissingAssemblySymbol(New AssemblyIdentity("asm1")).Modules(0), "", "test2", 0, True) 452missingTypes2(6) = New MissingMetadataTypeSymbol.TopLevel(New MissingAssemblySymbol(New AssemblyIdentity("asm2")).Modules(0), "", "test1", 0, True) 474Dim missingAssembly = New MissingAssemblySymbol(New AssemblyIdentity("asm1"))
SymbolsTests\MockSymbolTests.vb (1)
45Dim missingAssemblyName = New AssemblyIdentity("goo")
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
MockSymbols.vb (1)
781Return New AssemblyIdentity(_name)
Microsoft.CodeAnalysis.Workspaces (1)
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (1)
39return new AssemblyIdentity(name, version, cultureName, publicKeyOrToken, hasPublicKey);