149 references to Name
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 (37)
Desktop\DesktopAssemblyIdentityComparer.cs (10)
87SimpleNameComparer.Equals(reference.Name, definition.Name) && 88SimpleNameComparer.Equals(reference.Name, "mscorlib")) 168if (!s_arFxPolicy.TryGetValue(identity.Name, out value) || 233value.NewName ?? identity.Name, 262if (SimpleNameComparer.Equals(identity.Name, "System") || 263SimpleNameComparer.Equals(identity.Name, "System.Core")) 274if (SimpleNameComparer.Equals(identity.Name, "Microsoft.VisualBasic")) 280if (SimpleNameComparer.Equals(identity.Name, "System.ComponentModel.Composition")) 295identity.Name,
Desktop\DesktopAssemblyIdentityComparer.Fx.cs (1)
152if (!TryGetValue(new Key(identity.Name, identity.PublicKeyToken), out values))
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
174_lazyDisplay = assemblyIdentity.Name;
Emit\ErrorType.cs (1)
249string Cci.INamedEntity.Name => s_identity.Name;
MetadataReader\PEAssembly.cs (2)
141if (ivtMap.TryGetValue(identity.Name, out keys)) 147ivtMap[identity.Name] = keys;
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
80EscapeName(sb, Name);
MetadataReference\AssemblyIdentityComparer.cs (4)
138if (!SimpleNameComparer.Equals(reference.Name, definition.Name)) 156if (!SimpleNameComparer.Equals(reference.Name, definition.Name))
MetadataReference\AssemblyIdentityExtensions.cs (2)
18identity.Name.StartsWith("windows.", StringComparison.OrdinalIgnoreCase); 27string.Equals(identity.Name, WindowsRuntimeIdentitySimpleName, StringComparison.OrdinalIgnoreCase);
MetadataReference\AssemblyIdentityMap.cs (4)
36if (_map.TryGetValue(identity.Name, out sameName)) 79if (_map.TryGetValue(identity.Name, out sameName)) 103_map[identity.Name] = _map.TryGetValue(identity.Name, out sameName) ? sameName.Add(pair) : OneOrMany.Create(pair);
PEWriter\MetadataWriter.cs (2)
1962name: GetStringHandleForPathAndCheckLength(identity.Name), 3701sb.Append(identity.Name);
ReferenceManager\AssemblyDataForAssemblyBeingBuilt.cs (1)
88Debug.Assert(assemblies[_referencedAssemblyData[i].Identity.Name].Contains((_referencedAssemblyData[i], i + 1)));
ReferenceManager\CommonReferenceManager.Binding.cs (3)
122explicitAssembliesMap.Add(explicitAssemblies[i].Identity.Name, (explicitAssemblies[i], i)); 338implicitAssembliesMap.Add(implicitAssemblies[i].Identity.Name, (implicitAssemblies[i], explicitAssemblyCount + i)); 987var value = assemblyReferencesBySimpleName[identity.Name][0];
ReferenceManager\CommonReferenceManager.Resolution.cs (5)
675if (!referencesBySimpleName.TryGetValue(identity.Name, out sameSimpleNameIdentities)) 677referencesBySimpleName.Add(identity.Name, new List<ReferencedAssemblyIdentity> { referencedAssembly }); 932foreach ((AssemblyData definitionData, int definitionIndex) in definitions[reference.Name]) 1022foreach ((AssemblyData definitionData, int definitionIndex) in definitions[reference.Name]) 1049foreach ((AssemblyData definitionData, int definitionIndex) in definitions[reference.Name])
Microsoft.CodeAnalysis.CodeStyle (3)
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)
Microsoft.CodeAnalysis.CSharp (11)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
241return AssemblyIdentityComparer.SimpleNameComparer.Equals(leftIdentity.Name, rightIdentity.Name) &&
Emitter\Model\AssemblyReference.cs (1)
41string Cci.INamedEntity.Name => Identity.Name;
Errors\MessageProvider.cs (1)
215identity.Name,
SymbolDisplay\SymbolDisplayVisitor.cs (1)
154? symbol.Identity.Name
Symbols\AssemblySymbol.cs (2)
72/// This is equivalent to <see cref="Identity"/>.<see cref="AssemblyIdentity.Name"/>, but may be 81return Identity.Name;
Symbols\ReferenceManager.cs (2)
121Debug.Assert(AssemblyIdentityComparer.SimpleNameComparer.Equals(identity1.Name, identity2.Name));
Symbols\Source\SourceAssemblySymbol.cs (2)
2327if (lazyInternalsVisibleToMap.TryGetValue(identity.Name, out keys)) 2335lazyInternalsVisibleToMap.TryAdd(identity.Name, keys);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenFunctionPointersTests.cs (3)
2537Assert.NotEqual(nopiaReference.Display, module.ReferencedAssemblies[0].Name); 2571Assert.NotEqual(nopiaReference.Display, module.ReferencedAssemblies[0].Name); 2608Assert.Equal(intermediate.Display, module.ReferencedAssemblies[1].Name);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests.cs (2)
9955Assert.Equal("Bug1020038", m.ReferencedAssemblies[1].Name); 9974Assert.Equal("Bug1020038", m.ReferencedAssemblies[1].Name);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
InteractiveSessionReferencesTests.cs (1)
154Assert.False(m.ReferencedAssemblies.Any(a => a.Name == "libB"));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
Compilation\CompilationAPITests.cs (3)
1695Assert.Equal("?", compilation.Assembly.Identity.Name); 1703Assert.Equal("?", compilation.Assembly.Identity.Name); 1711Assert.Equal("ModuleAssemblyName", compilation.Assembly.Identity.Name);
DocumentationComments\DocumentationCommentCompilerTests.cs (1)
6924AssertEx.None(module.GetReferencedAssemblies(), id => id.Name.Contains("GeneralPia"));
Symbols\DefaultInterfaceImplementationTests.cs (2)
62586.assembly extern " + assemblyIdentity.Name + @" 62605.assembly extern " + assemblyIdentity.Name + @"
Symbols\Retargeting\RetargetingTests.cs (1)
993.assembly extern {assemblyIdentity.Name}
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
1443Func<CSharpCompilation> createCompilationLambda = () => CSharpCompilation.Create(identity.Name, options: options ?? TestOptions.ReleaseDll, references: references, syntaxTrees: trees);
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (4)
AssemblyReference.cs (1)
24string INamedEntity.Name => _identity.Name;
EEMetadataReferenceResolver.cs (1)
34if (_referencesBySimpleName.TryGetValue(referenceIdentity.Name, out var references))
MetadataUtilities.cs (2)
156if (corLibrary != null && refsBySimpleName.TryGetValue(corLibrary.Name, out var corLibraryReferences)) 452return IsWindowsAssemblyName(assemblyIdentity.Name) &&
Microsoft.CodeAnalysis.Features (8)
AddMissingReference\AbstractAddMissingReferenceCodeFixProvider.cs (1)
37var assemblyNames = uniqueIdentities.Select(i => i.Name).ToSet();
AddMissingReference\AddMissingReferenceCodeAction.cs (1)
54string.Equals(missingAssemblyIdentity.Name, candidateProject.AssemblyName, StringComparison.OrdinalIgnoreCase))
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
241return assemblyIdentity.Name;
FindUsages\DefinitionItemFactory.cs (2)
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\MetadataAsSourceGeneratedFileInfo.cs (2)
97name: AssemblyIdentity.Name, 98assemblyName: AssemblyIdentity.Name,
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
99var assemblyName = symbol.ContainingAssembly.Identity.Name;
Microsoft.CodeAnalysis.Scripting (14)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (10)
200if (_loadedAssembliesBySimpleName.TryGetValue(identity.Name, out var existingInfos)) 206_loadedAssembliesBySimpleName.Add(identity.Name, new List<LoadedAssemblyInfo> { info }); 266if (_loadedAssembliesBySimpleName.TryGetValue(identity.Name, out var loadedInfos)) 278AssemblyIdentityComparer.SimpleNameComparer.Equals(info.Identity.Name, identity.Name) && 283var assemblyFilePath = FindExistingAssemblyFile(identity.Name, loadDirectory); 298identity.Name, 311identity.Name, 345string pathWithoutExtension = Path.Combine(directory, identity.Name); 390if (_loadedAssembliesBySimpleName.TryGetValue(identity.Name, out var infos)) 400if (_dependenciesWithLocationBySimpleName.TryGetValue(identity.Name, out var sameSimpleNameIdentities))
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (3)
112var result = ResolveTrustedPlatformAssembly(referenceIdentity.Name, s_resolvedMissingAssemblyReferenceProperties); 123string pathWithoutExtension = PathUtilities.CombinePathsUnchecked(definitionDirectory, referenceIdentity.Name); 187var result = ResolveTrustedPlatformAssembly(identity.Name, properties);
src\Compilers\Shared\GlobalAssemblyCacheHelpers\MonoGlobalAssemblyCache.cs (1)
162Select(identityAndPath => identityAndPath.Identity.Name).Distinct();
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (5)
GlobalAssemblyCacheTests.cs (5)
30Assert.Equal("mscorlib", name.Name); 37Assert.Equal("mscorlib", name.Name); 44Assert.Equal("mscorlib", name.Name); 51Assert.Equal("System.Core", name.Name); 99Assert.Equal("netstandard", name.Name);
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
TestRuntimeMetadataReferenceResolver.cs (1)
29string name = referenceIdentity.Name;
Microsoft.CodeAnalysis.Test.Utilities (6)
CommonTestBase.cs (2)
355Debug.Assert(assemblyName == null || assemblyIdentity == null || assemblyIdentity.Name == assemblyName); 358assemblyName = assemblyIdentity?.Name ?? GetUniqueName();
Compilation\IRuntimeEnvironment.cs (1)
334fileName = identity.Name;
Metadata\ModuleData.cs (1)
77this.Id = new ModuleDataId(identity.Name, identity.GetDisplayName(), GetMvid(image));
Mocks\TestMissingMetadataReferenceResolver.cs (1)
46string nameAndVersion = referenceIdentity.Name + (referenceIdentity.Version != AssemblyIdentity.NullVersion ? $", {referenceIdentity.Version}" : "");
TargetFrameworkUtil.cs (1)
385return identity?.Name;
Microsoft.CodeAnalysis.UnitTests (15)
AssemblyUtilitiesTests.cs (3)
125Assert.Equal(expected: "netstandard", actual: results[0].Name); 131var results = AssemblyUtilities.IdentifyMissingDependencies(_testFixture.Alpha, new[] { _testFixture.Alpha }).Select(identity => identity.Name); 140Assert.Equal(expected: "Alpha", actual: result.Name);
MetadataReferences\AssemblyIdentityDisplayNameTests.cs (1)
101actual = AssemblyIdentity.TryParseDisplayName(displayName, out id) ? id.Name : null;
MetadataReferences\AssemblyIdentityExtensions.cs (1)
25result.Name = identity.Name;
MetadataReferences\AssemblyIdentityTests.cs (10)
98Assert.Equal("goo", id.Name); 110Assert.Equal("goo", id.Name); 120Assert.Equal("goo", id.Name); 144Assert.Equal("Goo", id.Name); 155Assert.Equal("Goo", id.Name); 166Assert.Equal("Goo", id.Name); 177Assert.Equal("Goo", id.Name); 188Assert.Equal("Goo", id.Name); 259Assert.Equal("Goo", id.Name); 282Assert.Equal("Goo", id.Name);
Microsoft.CodeAnalysis.VisualBasic (9)
CommandLine\VisualBasicCommandLineParser.vb (2)
534Not MetadataHelpers.IsValidAssemblyOrModuleName(identity.Name) Then 537moduleAssemblyName = identity.Name
Emit\AssemblyReference.vb (1)
40Return Identity.Name
Errors\MessageProvider.vb (1)
396identity.Name,
SymbolDisplay\SymbolDisplayVisitor.vb (1)
181Dim text = If((Format.TypeQualificationStyle = SymbolDisplayTypeQualificationStyle.NameOnly), symbol.Identity.Name, symbol.Identity.GetDisplayName())
Symbols\AssemblySymbol.vb (2)
72''' This is equivalent to <see cref="Identity"/>.<see cref="AssemblyIdentity.Name"/>, but may be 78Return Identity.Name
Symbols\Source\SourceAssemblySymbol.vb (2)
1004If _lazyInternalsVisibleToMap.TryGetValue(identity.Name, keys) Then 1009_lazyInternalsVisibleToMap.TryAdd(identity.Name, keys)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (4)
Compilation\CompilationAPITests.vb (4)
580ListNames.Add(I.Name) 2070Assert.Equal("?", c.Assembly.Identity.Name) 2077Assert.Equal("?", c.Assembly.Identity.Name) 2084Assert.Equal("ModuleAssemblyName", c.Assembly.Identity.Name)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\MockSymbolTests.vb (1)
55Assert.Equal("goo", mms1.ContainingAssembly.Identity.Name)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (3)
CompilationTestUtils.vb (3)
42Dim c = CreateCompilation(source, references, assemblyName:=identity.Name) 128Return VisualBasicCompilation.Create(identity.Name, trees, references, options) 1017e.Location.MetadataModule.ContainingAssembly.Identity.Name)
Microsoft.CodeAnalysis.Workspaces (3)
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)
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildWorkspace.cs (2)
592var fileName = identity != null ? identity.Name : Path.GetFileNameWithoutExtension(peRef.FilePath); 619_applyChangesProjectFile.RemoveMetadataReferenceAsync(identity.Name, identity.GetDisplayName(), peRef.FilePath, CancellationToken.None).Wait();
Microsoft.Extensions.Options.SourceGeneration (1)
SymbolLoader.cs (1)
52var containingAssemblyName = unconditionalSuppressMessageAttributeSymbol.ContainingAssembly.Identity.Name;
Microsoft.VisualStudio.LanguageServices (3)
Library\ObjectBrowser\AbstractDescriptionBuilder.cs (1)
49var name = assemblySymbol.Identity.Name;
Library\VsNavInfo\NavInfoFactory.cs (1)
156: containingAssembly.Identity.Name;
Workspace\VisualStudioSymbolNavigationService.cs (1)
84var assemblyName = symbol.ContainingAssembly.Identity.Name;