35 references to GetRelativePath
IdeCoreBenchmarks (2)
ProjectContainerKeyCache.cs (2)
72var relativePath = PathUtilities.GetRelativePath(relativePathBase, projectKey.FilePath!); 99var relativePath = PathUtilities.GetRelativePath(relativePathBase, documentKey.FilePath!);
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\Updater\SettingsUpdateHelper.cs (1)
162var relativePath = PathUtilities.GetRelativePath(editorConfigDirectory.ToLowerInvariant(), filePath);
Microsoft.CodeAnalysis.Features (4)
AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
146var relativeDirectoryPath = PathUtilities.GetRelativePath(
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
453relativePath = PathUtilities.GetRelativePath(editorConfigDirectory.ToLowerInvariant(), diagnosticFilePath);
EditAndContinue\TraceLog.cs (1)
159var relativeDir = PathUtilities.IsSameDirectoryOrChildOf(documentDir, projectDir) ? PathUtilities.GetRelativePath(projectDir, documentDir) : documentDir;
Workspace\CompileTimeSolutionProvider.cs (1)
202=> PathUtilities.GetRelativePath(projectDirectory, designTimeDocumentFilePath)[..^".g.cs".Length];
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
ProjectContainerKeyCache.cs (2)
72var relativePath = PathUtilities.GetRelativePath(relativePathBase, projectKey.FilePath!); 99var relativePath = PathUtilities.GetRelativePath(relativePathBase, documentKey.FilePath!);
Microsoft.CodeAnalysis.Workspaces (5)
Section.cs (1)
159var relativePath = PathUtilities.GetRelativePath(directoryContainingEditorconfig, codeFilePath);
Storage\SQLite\v2\SQLitePersistentStorage_DocumentIds.cs (1)
36documentKey.FilePath != null && PathUtilities.GetDirectoryName(PathUtilities.GetRelativePath(_solutionDirectory, documentKey.FilePath)) is { Length: > 0 } directoryName
Storage\SQLite\v2\SQLitePersistentStorage_ProjectIds.cs (1)
35projectKey.FilePath != null && PathUtilities.GetRelativePath(_solutionDirectory, projectKey.FilePath) is { Length: > 0 } relativePath
Workspace\CommandLineProject.cs (2)
119var relativePath = PathUtilities.GetRelativePath(projectDirectory, absolutePath); 146var relativePath = PathUtilities.GetRelativePath(projectDirectory, absolutePath);
Microsoft.CodeAnalysis.Workspaces.MSBuild (8)
MSBuild\ProjectFile\ProjectFile.cs (8)
305var relativePath = PathUtilities.GetRelativePath(_loadedProject.DirectoryPath, filePath); 328var relativePath = PathUtilities.GetRelativePath(_loadedProject.DirectoryPath, filePath); 368var relativePath = PathUtilities.GetRelativePath(_loadedProject.DirectoryPath, peRef.FilePath); 445var relativePath = PathUtilities.GetRelativePath(_loadedProject.DirectoryPath, filePath); 487var relativePath = PathUtilities.GetRelativePath(_loadedProject.DirectoryPath, reference.Path); 513var relativePath = PathUtilities.GetRelativePath(_loadedProject.DirectoryPath, projectFilePath); 536var relativePath = PathUtilities.GetRelativePath(_loadedProject.DirectoryPath, fileRef.FullPath); 550var relativePath = PathUtilities.GetRelativePath(_loadedProject.DirectoryPath, fileRef.FullPath);
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
UtilityTest\FilePathUtilitiesTests.cs (8)
21var result = PathUtilities.GetRelativePath(baseDirectory, fullPath); 32var result = PathUtilities.GetRelativePath(baseDirectory, fullPath); 43var result = PathUtilities.GetRelativePath(baseDirectory, fullPath); 54var result = PathUtilities.GetRelativePath(baseDirectory, fullPath); 65var result = PathUtilities.GetRelativePath(baseDirectory, fullPath); 76var result = PathUtilities.GetRelativePath(baseDirectory, fullPath); 87var result = PathUtilities.GetRelativePath(baseDirectory, fullPath); 98var result = PathUtilities.GetRelativePath(baseDirectory, fullPath);
Microsoft.VisualStudio.LanguageServices (4)
ProjectSystem\Legacy\AbstractLegacyProject.cs (1)
218var relativePath = PathUtilities.GetRelativePath(_projectDirectory, filename);
ProjectSystem\RuleSets\RuleSetEventHandler.cs (1)
255var newRuleSetRelativePath = PathUtilities.GetRelativePath(projectDirectoryFullPath, newRuleSetFilePath);
Storage\ProjectContainerKeyCache.cs (2)
72var relativePath = PathUtilities.GetRelativePath(relativePathBase, projectKey.FilePath!); 99var relativePath = PathUtilities.GetRelativePath(relativePathBase, documentKey.FilePath!);
Microsoft.VisualStudio.LanguageServices.Implementation (1)
SolutionExplorer\AnalyzersCommandHandler.cs (1)
532var ruleSetFileRelativePath = PathUtilities.GetRelativePath(projectDirectoryFullPath, ruleSetFileFullPath);