22 references to GetRelativePath
aspire (4)
Projects\ProjectLocator.cs (4)
56var relativePath = Path.GetRelativePath(currentDirectory.FullName, projectFile.FullName); 165projectFile => $"{projectFile.Name} ({Path.GetRelativePath(currentDirectory.FullName, projectFile.FullName)})", 181var relativePathToProjectFile = Path.GetRelativePath(settingsFile.Directory!.FullName, projectFile.FullName).Replace(Path.DirectorySeparatorChar, '/'); 186var relativeSettingsFilePath = Path.GetRelativePath(currentDirectory.FullName, settingsFile.FullName).Replace(Path.DirectorySeparatorChar, '/');
Aspire.Cli.Tests (2)
Projects\ProjectLocatorTests.cs (2)
63appHostPath = Path.GetRelativePath(aspireSettingsFile.Directory!.FullName, targetAppHostProjectFile.FullName) 101appHostPath = Path.GetRelativePath(aspireSettingsFile.Directory!.FullName, targetAppHostProjectFile.FullName)
Aspire.Hosting (1)
Publishing\ManifestPublishingContext.cs (1)
66var relativePath = Path.GetRelativePath(manifestDirectory, normalizedPath);
Aspire.Hosting.Docker (1)
DockerComposePublishingContext.cs (1)
205sourcePath = Path.GetRelativePath(OutputPath, sourcePath).Replace('\\', '/');
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (3)
UserJwtsTests.cs (3)
810var targetPath = Path.GetRelativePath(tempPath, projectPath); 826var targetPath = Path.GetRelativePath(tempPath, projectPath); 841var targetPath = Path.GetRelativePath(tempPath, projectPath);
Microsoft.AspNetCore.Components.WebView.Photino (1)
BlazorWindow.cs (1)
48var hostPageRelativePath = Path.GetRelativePath(contentRootDir, hostPage);
Microsoft.AspNetCore.Components.WebView.WindowsForms (2)
BlazorWebView.cs (2)
188 var contentRootRelativePath = Path.GetRelativePath(appRootDir, contentRootDirFullPath); 189 var hostPageRelativePath = Path.GetRelativePath(contentRootDirFullPath, hostPageFullPath);
Microsoft.AspNetCore.Components.WebView.Wpf (2)
BlazorWebView.cs (2)
271 var hostPageRelativePath = Path.GetRelativePath(contentRootDirFullPath, hostPageFullPath); 272 var contentRootDirRelativePath = Path.GetRelativePath(appRootDir, contentRootDirFullPath);
PrepareTests (3)
MinimizeUtil.cs (3)
76var currentRelativeDirectory = Path.GetRelativePath(sourceDirectory, currentDirName); 189var destFileName = Path.GetRelativePath(group.Key, tuple.FilePath.RelativePath); 235var destFilePath = Path.GetRelativePath(group.Key, tuple.FilePath.RelativePath);
PresentationBuildTasks (1)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
1606string path = Path.GetRelativePath(TargetPath + pathOfRelativeSourceFilePath, SourceFileInfo.SourcePath);
RunTests (2)
HelixTestRunner.cs (2)
201.Select(x => Path.GetRelativePath(binDir, x)) 472var relativePath = Path.GetRelativePath(payloadsDir, filePath);