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
77 references to Identity
Aspire.Hosting.Analyzers (1)
Infrastructure\WellKnownTypes.cs (1)
122if (type.ContainingAssembly.Identity.Name.StartsWith("Aspire.", StringComparison.Ordinal))
Aspire.Hosting.Integration.Analyzers (1)
src\Aspire.Hosting.Analyzers\Infrastructure\WellKnownTypes.cs (1)
122if (type.ContainingAssembly.Identity.Name.StartsWith("Aspire.", StringComparison.Ordinal))
GenerateDocumentationAndConfigFiles (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AssemblySymbolKey.cs (3)
17visitor.WriteString(symbol.Identity.Name); 28if (ignoreAssemblyKey || compilation.Assembly.Identity.Name == assemblyName) 36if (ignoreAssemblyKey || assembly.Identity.Name == assemblyName)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
29/// they have equal <see cref="IAssemblySymbol.Identity"/>.Name</item>
Microsoft.AspNetCore.App.Analyzers (2)
src\aspnetcore\src\Shared\RoslynUtils\WellKnownTypes.cs (2)
136if (type.ContainingAssembly.Identity.Name.StartsWith("System.", StringComparison.Ordinal) 137|| type.ContainingAssembly.Identity.Name.StartsWith("Microsoft.", StringComparison.Ordinal))
Microsoft.CodeAnalysis (4)
CommandLine\CommonCompiler.cs (2)
610consoleOutput.WriteLine(string.Format(CodeAnalysisResources.InternalsVisibleToCurrentAssembly, currentAssembly.Identity.GetDisplayName(fullKey: true))); 624consoleOutput.WriteLine(string.Format(CodeAnalysisResources.InternalsVisibleToReferencedAssembly, assembly.Identity.GetDisplayName(fullKey: true), grantsIvt));
Compilation\DeterministicKeyBuilder.cs (1)
408compilation.Assembly.Identity.PublicKey,
ReferenceManager\CommonReferenceManager.Resolution.cs (1)
290compilationReference.Compilation.Assembly.Identity,
Microsoft.CodeAnalysis.Analyzers (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AssemblySymbolKey.cs (3)
17visitor.WriteString(symbol.Identity.Name); 28if (ignoreAssemblyKey || compilation.Assembly.Identity.Name == assemblyName) 36if (ignoreAssemblyKey || assembly.Identity.Name == assemblyName)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
29/// they have equal <see cref="IAssemblySymbol.Identity"/>.Name</item>
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AssemblySymbolKey.cs (3)
17visitor.WriteString(symbol.Identity.Name); 28if (ignoreAssemblyKey || compilation.Assembly.Identity.Name == assemblyName) 36if (ignoreAssemblyKey || assembly.Identity.Name == assemblyName)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
29/// they have equal <see cref="IAssemblySymbol.Identity"/>.Name</item>
Microsoft.CodeAnalysis.CodeStyle (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AssemblySymbolKey.cs (3)
17visitor.WriteString(symbol.Identity.Name); 28if (ignoreAssemblyKey || compilation.Assembly.Identity.Name == assemblyName) 36if (ignoreAssemblyKey || assembly.Identity.Name == assemblyName)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
29/// 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)
88: assemblyWantingAccess.Identity.PublicKey;
Microsoft.CodeAnalysis.Features (17)
AddMissingReference\AbstractAddMissingReferenceCodeFixProvider.cs (1)
77uniqueIdentities.Remove(compilation.Assembly.Identity);
AddMissingReference\AddMissingReferenceCodeAction.cs (1)
58if (missingAssemblyIdentity.Equals(compilation.Assembly.Identity))
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (2)
287if (compilation?.Assembly?.Identity?.IsStrongName == true) 289return GetPublicKeyAsHexString(compilation.Assembly.Identity.PublicKey);
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (3)
2525return Equals(x?.Identity, y?.Identity); 2529=> obj?.Identity.GetHashCode() ?? 0;
FindUsages\DefinitionItemFactory.cs (4)
165return new AssemblyLocation(assembly.Identity.Name, assembly.Identity.Version, info.ReferencedThrough.Value.FilePath); 219metadataLocations.Add(new AssemblyLocation(containingAssembly.Identity.Name, containingAssembly.Identity.Version, info.ReferencedThrough.Value.FilePath));
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (3)
255var fullAssemblyName = containingAssembly.Identity.GetDisplayName(); 341var assemblyIdentity = topLevelNamedType.ContainingAssembly.Identity; 406return new UniqueDocumentKey(containingAssembly.Identity, containingAssembly.GetMetadata()?.Id, project.Language, SymbolKey.Create(topLevelNamedType, cancellationToken), signaturesOnly);
MetadataAsSource\MetadataAsSourceHelpers.cs (1)
38assemblySymbol.Identity.GetDisplayName());
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (2)
90var assemblyName = symbol.ContainingAssembly.Identity.Name; 91var assemblyVersion = symbol.ContainingAssembly.Identity.Version.ToString();
Microsoft.CodeAnalysis.Razor.Compiler (2)
CSharp\DefaultTagHelperDescriptorFactory.cs (1)
33var assemblyName = type.ContainingAssembly.Identity.Name;
Language\TagHelpers\Producers\ComponentTagHelperProducer.cs (1)
97var assemblyName = type.ContainingAssembly.Identity.Name;
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AssemblySymbolKey.cs (3)
17visitor.WriteString(symbol.Identity.Name); 28if (ignoreAssemblyKey || compilation.Assembly.Identity.Name == assemblyName) 36if (ignoreAssemblyKey || assembly.Identity.Name == assemblyName)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
29/// they have equal <see cref="IAssemblySymbol.Identity"/>.Name</item>
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 776Dim publicKey = If(assemblyWantingAccessAssemblySymbol IsNot Nothing, assemblyWantingAccessAssemblySymbol.PublicKey.NullToEmpty(), assemblyWantingAccess.Identity.PublicKey)
Microsoft.CodeAnalysis.Workspaces (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AssemblySymbolKey.cs (3)
17visitor.WriteString(symbol.Identity.Name); 28if (ignoreAssemblyKey || compilation.Assembly.Identity.Name == assemblyName) 36if (ignoreAssemblyKey || assembly.Identity.Name == assemblyName)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
29/// they have equal <see cref="IAssemblySymbol.Identity"/>.Name</item>
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
654return symbol?.Identity;
Microsoft.DotNet.ApiCompatibility (7)
Comparing\SymbolEqualityComparer.cs (1)
37return assembly.Identity.Name;
Rules\AssemblyIdentityMustMatch.cs (6)
37string message = string.Format(Resources.AssemblyNameDoesNotExist, leftMetadata, right.Identity.Name); 48right.Identity.GetDisplayName())); 65string.Format(Resources.AssemblyNameDoesNotExist, left.Identity.Name, rightMetadata), 67left.Identity.GetDisplayName())); 72AssemblyIdentity leftIdentity = left!.Identity; 73AssemblyIdentity rightIdentity = right!.Identity;
Microsoft.DotNet.ApiSymbolExtensions (3)
AssemblySymbolLoader.cs (3)
317if (validateMatchingIdentity && !matchingAssembly.Identity.Equals(assembly.Identity)) 333string assemblyInfo = validateMatchingIdentity ? assembly.Identity.GetDisplayName() : assembly.Name;
Microsoft.Extensions.Options.SourceGeneration (1)
SymbolLoader.cs (1)
52var containingAssemblyName = unconditionalSuppressMessageAttributeSymbol.ContainingAssembly.Identity.Name;
Microsoft.Maui.Controls.SourceGen (3)
CodeBehindGenerator.cs (3)
187 .SingleOrDefault(t => t.ContainingAssembly.Identity.Name == "Microsoft.Maui.Controls"); 232 if (attr.ConstructorArguments[0].Value is string assemblyName && new AssemblyName(assemblyName).Name == compilation.Assembly.Identity.Name) 558 if (type.ContainingAssembly.Identity.Name != typeInfo.assemblyName)
Roslyn.Diagnostics.Analyzers (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AssemblySymbolKey.cs (3)
17visitor.WriteString(symbol.Identity.Name); 28if (ignoreAssemblyKey || compilation.Assembly.Identity.Name == assemblyName) 36if (ignoreAssemblyKey || assembly.Identity.Name == assemblyName)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
29/// they have equal <see cref="IAssemblySymbol.Identity"/>.Name</item>