2 implementations of Identity
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\AssemblySymbol.cs (1)
42AssemblyIdentity IAssemblySymbol.Identity => UnderlyingAssemblySymbol.Identity;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\AssemblySymbol.vb (1)
101Public MustOverride ReadOnly Property Identity As AssemblyIdentity Implements IAssemblySymbol.Identity, IAssemblySymbolInternal.Identity
156 references to Identity
Aspire.Hosting.Analyzers (1)
Infrastructure\WellKnownTypes.cs (1)
102if (type.ContainingAssembly.Identity.Name.StartsWith("Aspire.", StringComparison.Ordinal))
Microsoft.AspNetCore.App.Analyzers (2)
src\Shared\RoslynUtils\WellKnownTypes.cs (2)
107if (type.ContainingAssembly.Identity.Name.StartsWith("System.", StringComparison.Ordinal) 108|| type.ContainingAssembly.Identity.Name.StartsWith("Microsoft.", StringComparison.Ordinal))
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
src\Shared\RoslynUtils\WellKnownTypes.cs (2)
107if (type.ContainingAssembly.Identity.Name.StartsWith("System.", StringComparison.Ordinal) 108|| type.ContainingAssembly.Identity.Name.StartsWith("Microsoft.", StringComparison.Ordinal))
Microsoft.CodeAnalysis (5)
CommandLine\CommonCompiler.cs (2)
621consoleOutput.WriteLine(string.Format(CodeAnalysisResources.InternalsVisibleToCurrentAssembly, currentAssembly.Identity.GetDisplayName(fullKey: true))); 635consoleOutput.WriteLine(string.Format(CodeAnalysisResources.InternalsVisibleToReferencedAssembly, assembly.Identity.GetDisplayName(fullKey: true), grantsIvt));
Compilation\Compilation.cs (1)
221Assembly.Identity.PublicKey,
Compilation\DeterministicKeyBuilder.cs (1)
332compilation.Assembly.Identity.PublicKey,
ReferenceManager\CommonReferenceManager.Resolution.cs (1)
289compilationReference.Compilation.Assembly.Identity,
Microsoft.CodeAnalysis.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AssemblySymbolKey.cs (3)
19visitor.WriteString(symbol.Identity.Name); 30if (ignoreAssemblyKey || compilation.Assembly.Identity.Name == assemblyName) 38if (ignoreAssemblyKey || assembly.Identity.Name == assemblyName)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
28/// they have equal <see cref="IAssemblySymbol.Identity"/>.Name</item>
Microsoft.CodeAnalysis.CSharp (3)
SymbolDisplay\SymbolDisplayVisitor.cs (2)
154? symbol.Identity.Name 155: symbol.Identity.GetDisplayName();
Symbols\PublicModel\AssemblySymbol.cs (1)
86IVTConclusion conclusion = identity.PerformIVTCheck(assemblyWantingAccess.Identity.PublicKey, key);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (3)
Emit\EditAndContinue\AssemblyReferencesTests.cs (3)
350"Lib, " + lib0.Assembly.Identity.Version, 352"Lib, " + lib0.Assembly.Identity.Version, 354"Lib, " + lib0.Assembly.Identity.Version,
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (34)
Attributes\AttributeTests_Assembly.cs (2)
33Assert.Equal(new Version(1, 2, 3, 4), other.Assembly.Identity.Version); 299Assert.Equal("pt-BR", (other.Assembly.Identity.CultureName));
Attributes\InternalsVisibleToAndStrongNameTests.cs (32)
111Assert.True(ByteSequenceComparer.Equals(s_publicKey, other.Assembly.Identity.PublicKey)); 145Assert.True(comp.Assembly.Identity.PublicKey.IsEmpty); 156Assert.True(ByteSequenceComparer.Equals(s_publicKey, comp.Assembly.Identity.PublicKey)); 175Assert.True(comp.Assembly.Identity.PublicKey.IsEmpty); 185Assert.True(ByteSequenceComparer.Equals(s_publicKey, comp.Assembly.Identity.PublicKey)); 257Assert.True(ByteSequenceComparer.Equals(s_publicKey, other.Assembly.Identity.PublicKey)); 284Assert.True(ByteSequenceComparer.Equals(s_publicKey, other.Assembly.Identity.PublicKey)); 304Assert.True(comp.Assembly.Identity.PublicKey.IsEmpty); 314Assert.True(ByteSequenceComparer.Equals(s_publicKey, comp.Assembly.Identity.PublicKey)); 326Assert.True(ByteSequenceComparer.Equals(TestResources.General.snPublicKey.AsImmutableOrNull(), other.Assembly.Identity.PublicKey)); 351Assert.True(comp.Assembly.Identity.PublicKey.IsEmpty); 360Assert.True(ByteSequenceComparer.Equals(s_publicKey, comp.Assembly.Identity.PublicKey)); 373Assert.True(other.Assembly.Identity.PublicKey.IsEmpty); 387Assert.True(other.Assembly.Identity.PublicKey.IsEmpty); 406Assert.True(other.Assembly.Identity.PublicKey.IsEmpty); 418Assert.True(ByteSequenceComparer.Equals(s_publicKey, other.Assembly.Identity.PublicKey)); 430Assert.True(ByteSequenceComparer.Equals(s_publicKey, other.Assembly.Identity.PublicKey)); 454Assert.True(other.Assembly.Identity.PublicKey.IsEmpty); 465Assert.True(other.Assembly.Identity.PublicKey.IsEmpty); 479Assert.True(ByteSequenceComparer.Equals(s_publicKey, c.Assembly.Identity.PublicKey)); 508Assert.True(ByteSequenceComparer.Equals(s_publicKey, c.Assembly.Identity.PublicKey)); 1109Assert.True(ByteSequenceComparer.Equals(s_publicKey, requestor.Assembly.Identity.PublicKey)); 1138Assert.True(ByteSequenceComparer.Equals(s_publicKey, requestor.Assembly.Identity.PublicKey)); 1167Assert.True(ByteSequenceComparer.Equals(s_publicKey, requestor.Assembly.Identity.PublicKey)); 1199Assert.True(ByteSequenceComparer.Equals(s_publicKey, requestor.Assembly.Identity.PublicKey)); 1234Assert.True(ByteSequenceComparer.Equals(s_publicKey, requestor.Assembly.Identity.PublicKey)); 1460Assert.Equal(TestResources.General.snMaxSizePublicKey, comp.Assembly.Identity.PublicKey); 1461Assert.Equal<byte>(pubKeyTokenBytes, comp.Assembly.Identity.PublicKeyToken); 1478Assert.Equal(TestResources.General.snMaxSizePublicKey, comp2.Assembly.Identity.PublicKey); 1479Assert.Equal<byte>(pubKeyTokenBytes, comp2.Assembly.Identity.PublicKeyToken); 1488Assert.Equal(TestResources.General.snMaxSizePublicKey, comp3.Assembly.Identity.PublicKey); 1489Assert.Equal<byte>(pubKeyTokenBytes, comp3.Assembly.Identity.PublicKeyToken);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (10)
Compilation\CompilationAPITests.cs (3)
1695Assert.Equal("?", compilation.Assembly.Identity.Name); 1703Assert.Equal("?", compilation.Assembly.Identity.Name); 1711Assert.Equal("ModuleAssemblyName", compilation.Assembly.Identity.Name);
Compilation\ReferenceManagerTests.cs (5)
1662Assert.NotEqual(comp.Assembly.Identity, actualIdentity); 2063Assert.Equal("B, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", libBv1.Assembly.Identity.GetDisplayName()); 2064Assert.Equal("B, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ce65828c82a341f2", libBv2.Assembly.Identity.GetDisplayName()); 2171Assert.Equal("System.Numerics.Vectors, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", vectors40.Assembly.Identity.GetDisplayName()); 2178Assert.Equal("System.Numerics.Vectors, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", vectors41.Assembly.Identity.GetDisplayName());
Symbols\AssemblyAndNamespaceTests.cs (1)
688Assert.True(comp.Assembly.Identity.IsRetargetable);
Symbols\Retargeting\RetargetingTests.cs (1)
989AssemblyIdentity assemblyIdentity = comp.Assembly.Identity;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Utilities\SymbolEquivalenceComparerTests.cs (3)
1780=> x.Identity.Equals(y.Identity); 1783=> obj.Identity.GetHashCode();
Microsoft.CodeAnalysis.Features (15)
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (2)
287if (compilation?.Assembly?.Identity?.IsStrongName == true) 289return GetPublicKeyAsHexString(compilation.Assembly.Identity.PublicKey);
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (3)
2348return Equals(x?.Identity, y?.Identity); 2352=> obj?.Identity.GetHashCode() ?? 0;
FindUsages\DefinitionItemFactory.cs (4)
160return new AssemblyLocation(assembly.Identity.Name, assembly.Identity.Version, info.ReferencedThrough.Value.FilePath); 214metadataLocations.Add(new AssemblyLocation(containingAssembly.Identity.Name, containingAssembly.Identity.Version, info.ReferencedThrough.Value.FilePath));
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (2)
245var fullAssemblyName = containingAssembly.Identity.GetDisplayName(); 389return new UniqueDocumentKey(containingAssembly.Identity, containingAssembly.GetMetadata()?.Id, project.Language, SymbolKey.Create(topLevelNamedType, cancellationToken), signaturesOnly);
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (1)
40this.AssemblyIdentity = topLevelNamedType.ContainingAssembly.Identity;
MetadataAsSource\MetadataAsSourceHelpers.cs (1)
39assemblySymbol.Identity.GetDisplayName());
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (2)
99var assemblyName = symbol.ContainingAssembly.Identity.Name; 100var assemblyVersion = symbol.ContainingAssembly.Identity.Version.ToString();
Microsoft.CodeAnalysis.LanguageServer.Protocol (6)
Features\DecompiledSource\AssemblyResolver.cs (6)
91if (assemblies[0].Identity.Version != name.Version) 93Log(FeaturesResources.WARN_Version_mismatch_Expected_0_Got_1, name.Version, assemblies[0].Identity.Version); 110Log(assembly.Identity.GetDisplayName()); 111var version = assembly.Identity.Version; 112var publicKeyToken = assembly.Identity.PublicKey; 118else if (highestVersion == null || highestVersion.Identity.Version < version)
Microsoft.CodeAnalysis.Test.Utilities (5)
Compilation\IRuntimeEnvironment.cs (2)
201var corLibIdentity = compilation.GetSpecialType(SpecialType.System_Object).ContainingAssembly.Identity; 214var identity = referencedCompilation.Assembly.Identity;
CompilationVerifier.cs (1)
498return _compilation.Assembly.Identity.GetDisplayName();
Platform\Desktop\DesktopRuntimeEnvironment.cs (2)
219var corLibIdentity = mainCompilation.GetSpecialType(SpecialType.System_Object).ContainingAssembly.Identity; 220var identity = mainCompilation.Assembly.Identity;
Microsoft.CodeAnalysis.VisualBasic (4)
SymbolDisplay\SymbolDisplayVisitor.vb (2)
181Dim text = If((Format.TypeQualificationStyle = SymbolDisplayTypeQualificationStyle.NameOnly), symbol.Identity.Name, symbol.Identity.GetDisplayName())
Symbols\AssemblySymbol.vb (2)
101Public MustOverride ReadOnly Property Identity As AssemblyIdentity Implements IAssemblySymbol.Identity, IAssemblySymbolInternal.Identity 754Dim conclusion As IVTConclusion = Me.Identity.PerformIVTCheck(assemblyWantingAccess.Identity.PublicKey, key)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (40)
Attributes\AssemblyAttributes.vb (5)
41Assert.Equal(New Version(1, 2, 3, 4), other.Assembly.Identity.Version) 369Assert.Equal("pt-BR", other.Assembly.Identity.CultureName) 584dependencies:={New ModuleData(en_usRef.Compilation.Assembly.Identity, 617dependencies:={New ModuleData(en_UKRef.Compilation.Assembly.Identity, 621New ModuleData(neutralRef.Compilation.Assembly.Identity,
Attributes\InternalsVisibleToAndStrongNameTests.vb (32)
84Assert.True(ByteSequenceComparer.Equals(s_publicKey, other.Assembly.Identity.PublicKey)) 104Assert.True(comp.Assembly.Identity.PublicKey.IsEmpty) 114Assert.True(ByteSequenceComparer.Equals(s_publicKey, comp.Assembly.Identity.PublicKey)) 134Assert.True(comp.Assembly.Identity.PublicKey.IsEmpty) 144Assert.True(ByteSequenceComparer.Equals(s_publicKey, comp.Assembly.Identity.PublicKey)) 163Assert.True(ByteSequenceComparer.Equals(s_publicKey, other.Assembly.Identity.PublicKey)) 182Assert.True(ByteSequenceComparer.Equals(s_publicKey, other.Assembly.Identity.PublicKey)) 210Assert.True(comp.Assembly.Identity.PublicKey.IsEmpty) 220Assert.True(ByteSequenceComparer.Equals(s_publicKey, comp.Assembly.Identity.PublicKey)) 239Assert.True(ByteSequenceComparer.Equals(TestResources.General.snPublicKey.AsImmutableOrNull(), other.Assembly.Identity.PublicKey)) 270Assert.True(comp.Assembly.Identity.PublicKey.IsEmpty) 280Assert.True(ByteSequenceComparer.Equals(s_publicKey, comp.Assembly.Identity.PublicKey)) 302Assert.True(other.Assembly.Identity.PublicKey.IsEmpty) 350Assert.True(other.Assembly.Identity.PublicKey.IsEmpty) 369Assert.True(other.Assembly.Identity.PublicKey.IsEmpty) 387Assert.True(ByteSequenceComparer.Equals(s_publicKey, c.Assembly.Identity.PublicKey)) 420Assert.True(ByteSequenceComparer.Equals(s_publicKey, c.Assembly.Identity.PublicKey)) 511Assert.True(other.Assembly.Identity.PublicKey.IsEmpty) 540Assert.True(other.Assembly.Identity.PublicKey.IsEmpty) 755Dim unused = requestor.Assembly.Identity 788Dim unused = requestor.Assembly.Identity 827Dim unused = requestor.Assembly.Identity 856Dim unused = requestor.Assembly.Identity 892Dim unused = requestor.Assembly.Identity 925Dim unused = requestor.Assembly.Identity 959Dim unused = requestor.Assembly.Identity 1142Assert.Equal(TestResources.General.snMaxSizePublicKey, comp.Assembly.Identity.PublicKey) 1143AssertEx.Equal(Of Byte)(pubKeyTokenBytes, comp.Assembly.Identity.PublicKeyToken) 1160Assert.Equal(TestResources.General.snMaxSizePublicKey, comp2.Assembly.Identity.PublicKey) 1161AssertEx.Equal(Of Byte)(pubKeyTokenBytes, comp2.Assembly.Identity.PublicKeyToken) 1167Assert.Equal(TestResources.General.snMaxSizePublicKey, comp3.Assembly.Identity.PublicKey) 1168AssertEx.Equal(Of Byte)(pubKeyTokenBytes, comp3.Assembly.Identity.PublicKeyToken)
Emit\EditAndContinue\AssemblyReferencesTests.vb (3)
201"Lib, " & lib0.Assembly.Identity.Version.ToString(), 203"Lib, " & lib0.Assembly.Identity.Version.ToString(), 205"Lib, " & lib0.Assembly.Identity.Version.ToString()
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Compilation\CompilationAPITests.vb (3)
2070Assert.Equal("?", c.Assembly.Identity.Name) 2077Assert.Equal("?", c.Assembly.Identity.Name) 2084Assert.Equal("ModuleAssemblyName", c.Assembly.Identity.Name)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
CompilationTestUtils.vb (1)
1017e.Location.MetadataModule.ContainingAssembly.Identity.Name)
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AssemblySymbolKey.cs (3)
19visitor.WriteString(symbol.Identity.Name); 30if (ignoreAssemblyKey || compilation.Assembly.Identity.Name == assemblyName) 38if (ignoreAssemblyKey || assembly.Identity.Name == assemblyName)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
28/// they have equal <see cref="IAssemblySymbol.Identity"/>.Name</item>
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
645return symbol?.Identity;
Microsoft.Extensions.Options.SourceGeneration (1)
SymbolLoader.cs (1)
52var containingAssemblyName = unconditionalSuppressMessageAttributeSymbol.ContainingAssembly.Identity.Name;
Microsoft.VisualStudio.LanguageServices (9)
Library\ObjectBrowser\AbstractDescriptionBuilder.cs (1)
49var name = assemblySymbol.Identity.Name;
Library\ObjectBrowser\AbstractListItemFactory.cs (3)
458=> x.Item2.Identity.Equals(y.Item2.Identity); 461=> obj.Item2.Identity.GetHashCode();
Library\VsNavInfo\NavInfoFactory.cs (4)
61=> new NavInfo(this, libraryName: assemblySymbol.Identity.GetDisplayName()); 147var isCompilationAssembly = containingAssembly.Identity.Equals(compilation.Assembly.Identity); 156: containingAssembly.Identity.Name;
Workspace\VisualStudioSymbolNavigationService.cs (1)
84var assemblyName = symbol.ContainingAssembly.Identity.Name;