10 references to GetMetadataReference
Microsoft.CodeAnalysis.CSharp (1)
Compilation\CSharpCompilation.cs (1)
1346return base.GetMetadataReference(assemblySymbol);
Microsoft.CodeAnalysis.CSharp.Features (1)
AddImport\CSharpAddImportFeatureService.cs (1)
565var metadataReference = semanticModel.Compilation.GetMetadataReference(namespaceSymbol.ContainingAssembly);
Microsoft.CodeAnalysis.Features (3)
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (2)
225var metadataReference = compilation.GetMetadataReference(containingAssembly); 371var peMetadataReference = compilation.GetMetadataReference(topLevelNamedType.ContainingAssembly) as PortableExecutableReference;
MetadataAsSource\MetadataAsSourceHelpers.cs (1)
47var assemblyReference = compilation.GetMetadataReference(assemblySymbol);
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\DecompiledSource\AssemblyResolver.cs (1)
132var reference = _parentCompilation.GetMetadataReference(assembly);
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Compilation\CompilationAPITests.vb (2)
2509Assert.Null(comp.GetMetadataReference(csComp.Assembly)) 2510Assert.Null(comp.GetMetadataReference(Nothing))
Microsoft.VisualStudio.LanguageServices (2)
Library\VsNavInfo\NavInfoFactory.cs (1)
154libraryName = compilation.GetMetadataReference(containingAssembly) is PortableExecutableReference portableExecutableReference
Progression\GraphNodeIdCreation.cs (1)
428if (compilation.GetMetadataReference(containingAssembly) is PortableExecutableReference reference && !string.IsNullOrEmpty(reference.FilePath))