59 references to FilePath
Microsoft.CodeAnalysis (7)
MetadataReference\MetadataImageReference.cs (4)
45this.FilePath, 53return _display ?? FilePath ?? (Properties.Kind == MetadataImageKind.Assembly ? CodeAnalysisResources.InMemoryAssembly : CodeAnalysisResources.InMemoryModule); 73if (FilePath != null) 76sb.Append(FilePath);
MetadataReference\PortableExecutableReference.cs (1)
37get { return FilePath; }
PEWriter\MetadataWriter.PortablePdb.cs (2)
965if (referenceManager.GetMetadataReference(pair.AssemblySymbol) is PortableExecutableReference { FilePath: { } } portableReference) 967var fileName = PathUtilities.GetFileName(portableReference.FilePath);
Microsoft.CodeAnalysis.CSharp (3)
Symbols\Source\SourceAssemblySymbol.cs (2)
975if ((object)fileRef != null && (object)fileRef.FilePath != null) 977string fileName = FileNameUtilities.GetFileName(fileRef.FilePath);
Symbols\SymbolDistinguisher.cs (1)
183string? path = metadataReference.FilePath;
Microsoft.CodeAnalysis.Features (16)
AddImport\AbstractAddImportFeatureService.cs (4)
417return PathUtilities.ContainsPathComponent(reference.FilePath, pathComponent, ignoreCase: true); 442var path1 = x?.FilePath ?? x?.Display; 443var path2 = y?.FilePath ?? y?.Display; 452var path = obj.FilePath ?? obj.Display;
AddImport\AddImportFixData.cs (1)
83/// is the <see cref="PortableExecutableReference.FilePath"/> for it.
AddImport\CodeActions\MetadataSymbolReferenceCodeAction.cs (1)
32.First(pe => pe.FilePath == FixData.PortableExecutableReferenceFilePathToAdd);
AddImport\References\MetadataSymbolReference.cs (5)
46return (string.Format(FeaturesResources.Add_reference_to_0, Path.GetFileName(_reference.FilePath)), 56_referenceProjectId, _reference.FilePath); 70StringComparer.OrdinalIgnoreCase.Equals(_reference.FilePath, reference._reference.FilePath); 76StringComparer.OrdinalIgnoreCase.GetHashCode(_reference.FilePath));
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (3)
241var assemblyLocation = (metadataReference as PortableExecutableReference)?.FilePath; 399if (peMetadataReference?.FilePath != null) 401return new UniqueDocumentKey(peMetadataReference.FilePath, peMetadataReference.GetMetadataId(), project.Language, SymbolKey.Create(topLevelNamedType, cancellationToken), signaturesOnly);
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
102if (compilation.GetMetadataReference(symbol.ContainingAssembly) is not PortableExecutableReference { FilePath: not null and var dllPath })
UnusedReferences\UnusedReferencesRemover.cs (1)
50.Select(reference => reference.FilePath)
Microsoft.CodeAnalysis.Scripting (2)
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (1)
119var definitionDirectory = PathUtilities.GetDirectoryName((definition as PortableExecutableReference)?.FilePath);
ScriptBuilder.cs (1)
144var path = (referencedAssembly.Key as PortableExecutableReference)?.FilePath;
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\Source\SourceAssemblySymbol.vb (2)
1349If fileRef IsNot Nothing AndAlso fileRef.FilePath IsNot Nothing Then 1350Dim fileName As String = FileNameUtilities.GetFileName(fileRef.FilePath)
Microsoft.CodeAnalysis.Workspaces (18)
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (1)
229=> "_Metadata_" + reference.FilePath;
Serialization\SerializedPortableExecutableReference.cs (2)
52=> new SerializedPortableExecutableReference(properties, FilePath, _metadata, _storageHandles, _provider); 61FilePath={this.FilePath}
Serialization\SerializerService_Reference.cs (3)
203writer.WriteString(reference.FilePath); 586throw new FileNotFoundException(FilePath); 590=> new MissingMetadataReference(properties, FilePath, _provider);
Workspace\Host\Metadata\MetadataServiceFactory.cs (1)
50=> new ThrowingExecutableReference(FilePath!, properties, documentationProvider, exception);
Workspace\ProjectSystem\ProjectSystemProject.cs (2)
699.Single(m => m.FilePath == path && m.Properties == properties); 1428_projectSystemProjectFactory.FileWatchedPortableExecutableReferenceFactory.StopWatchingReference(reference.FilePath!, referenceToTrack: reference);
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (6)
437FileWatchedPortableExecutableReferenceFactory.StartWatchingReference(reference.FilePath!); 441FileWatchedPortableExecutableReferenceFactory.StopWatchingReference(reference.FilePath!, referenceToTrack: reference); 580&& string.Equals(peReference.FilePath, outputPath, StringComparison.OrdinalIgnoreCase)) 591projectReferenceInfo = projectReferenceInfo.WithConvertedProjectReference(peReference.FilePath!, projectReference); 840getFilePath: static reference => reference.FilePath!, 841createNewReference: static (solutionServices, reference) => CreateMetadataReference_NoLock(reference.FilePath!, reference.Properties, solutionServices),
Workspace\Solution\SolutionCompilationState.RootedSymbolSet.cs (1)
19=> new(reference.Properties, (reference as PortableExecutableReference)?.FilePath);
Workspace\Workspace.cs (2)
1473(!RoslynString.IsNullOrEmpty(pemeta.FilePath) && outputAssemblyToProjectIdMap.TryGetValue(pemeta.FilePath, out matchingProjectId)))
Microsoft.CodeAnalysis.Workspaces.MSBuild (9)
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (1)
87PortableExecutableReference portableExecutableReference => portableExecutableReference.FilePath,
MSBuild\MSBuildWorkspace.cs (8)
590if (metadataReference is PortableExecutableReference peRef && peRef.FilePath != null) 592if (IsInGAC(peRef.FilePath) && identity != null) 598else if (IsFrameworkReferenceAssembly(peRef.FilePath)) 601var fileName = identity != null ? identity.Name : Path.GetFileNameWithoutExtension(peRef.FilePath); 606var relativePath = PathUtilities.GetRelativePath(Path.GetDirectoryName(CurrentSolution.GetRequiredProject(projectId).FilePath)!, peRef.FilePath); 607var fileName = Path.GetFileNameWithoutExtension(peRef.FilePath); 626if (metadataReference is PortableExecutableReference peRef && peRef.FilePath != null) 628_applyChangesProjectFile.RemoveMetadataReferenceAsync(identity.Name, identity.GetDisplayName(), peRef.FilePath, CancellationToken.None).Wait();
rzc (2)
CachingMetadataReference.cs (2)
26return _metadataCache.GetMetadata(FilePath); 31return new CachingMetadataReference(FilePath, properties);