48 references to GetRelativePath
aspire (17)
Agents\Playwright\PlaywrightCliInstaller.cs (2)
295var relativePath = Path.GetRelativePath(sourceDir, sourceFile); 312var relativePath = Path.GetRelativePath(targetDir, targetFile);
Backchannel\AppHostConnectionResolver.cs (1)
146path => Path.GetRelativePath(workingDirectory, path),
Backchannel\AuxiliaryBackchannelMonitor.cs (2)
121var relativePath = Path.GetRelativePath(normalizedWorkingDirectory, normalizedAppHostPath); 481var relativePath = Path.GetRelativePath(workingDirectory, normalizedAppHostPath);
Commands\AppHostLauncher.cs (1)
337var appHostRelativePath = Path.GetRelativePath(executionContext.WorkingDirectory.FullName, effectiveAppHostFile.FullName);
Commands\RunCommand.cs (1)
273var appHostRelativePath = Path.GetRelativePath(ExecutionContext.WorkingDirectory.FullName, effectiveAppHostFile.FullName);
Commands\StopCommand.cs (1)
187? Path.GetRelativePath(ExecutionContext.WorkingDirectory.FullName, appHostPath)
Projects\ProjectLocator.cs (6)
93var relativePath = Path.GetRelativePath(executionContext.WorkingDirectory.FullName, candidateFile.FullName); 102var relativePath = Path.GetRelativePath(executionContext.WorkingDirectory.FullName, candidateFile.FullName); 203file => $"{file.Name.EscapeMarkup()} ({Path.GetRelativePath(executionContext.WorkingDirectory.FullName, file.FullName).EscapeMarkup()})", 280MultipleAppHostProjectsFoundBehavior.Prompt => await interactionService.PromptForSelectionAsync(InteractionServiceStrings.SelectAppHostToUse, results.BuildableAppHost, projectFile => $"{projectFile.Name.EscapeMarkup()} ({Path.GetRelativePath(executionContext.WorkingDirectory.FullName, projectFile.FullName).EscapeMarkup()})", cancellationToken), 307var relativePathToProjectFile = Path.GetRelativePath(settingsFile.Directory!.FullName, projectFile.FullName).Replace(Path.DirectorySeparatorChar, '/'); 327var relativeSettingsFilePath = Path.GetRelativePath(executionContext.WorkingDirectory.FullName, settingsFile.FullName).Replace(Path.DirectorySeparatorChar, '/');
Projects\SolutionLocator.cs (1)
43solutionFile => $"{solutionFile.Name.EscapeMarkup()} ({Path.GetRelativePath(startDirectory.FullName, solutionFile.FullName).EscapeMarkup()})",
Utils\AppHostHelper.cs (2)
57var relativePath = Path.GetRelativePath(workingDirectory.FullName, projectFile.FullName); 71var relativePath = Path.GetRelativePath(workingDirectory.FullName, projectFile.FullName);
Aspire.Cli.Tests (4)
Projects\ProjectLocatorTests.cs (3)
68appHostPath = Path.GetRelativePath(aspireSettingsFile.Directory!.FullName, targetAppHostProjectFile.FullName) 102appHostPath = Path.GetRelativePath(aspireSettingsFile.Directory!.FullName, targetAppHostProjectFile.FullName) 168var relativePath = Path.GetRelativePath(aspireSettingsFile.Directory!.FullName, targetAppHostProjectFile.FullName);
TestServices\TestAuxiliaryBackchannelMonitor.cs (1)
95var relativePath = Path.GetRelativePath(normalizedWorkingDirectory, normalizedAppHostPath);
Aspire.Hosting (1)
Publishing\ManifestPublishingContext.cs (1)
72var relativePath = Path.GetRelativePath(manifestDirectory, normalizedPath);
Aspire.Hosting.Azure.Tests (1)
AzureFunctionsTests.cs (1)
647var relativePath = Path.GetRelativePath(builder.AppHostDirectory, projectPath);
Aspire.Hosting.Docker (1)
DockerComposePublishingContext.cs (1)
203sourcePath = Path.GetRelativePath(OutputPath, sourcePath).Replace('\\', '/');
Aspire.Hosting.JavaScript (1)
JavaScriptHostingExtensions.cs (1)
595var relativeConfigPath = Path.GetRelativePath(Path.Join(appDirectory, "node_modules", ".bin"), absoluteConfigPath);
Aspire.Hosting.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
759var relativePath = Path.GetRelativePath(appHostParentDirectory, appDirectoryFullPath);
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);
Microsoft.CodeAnalysis.CSharp.Features (1)
SyncedSource\FileBasedPrograms\ExternalHelpers.cs (1)
25=> Path.GetRelativePath(relativeTo, path);
Microsoft.CodeAnalysis.Test.Utilities (1)
TempFiles\TempRoot.cs (1)
43var relativePath = Path.GetRelativePath(parentDirectory.FullName, tempDirectory.FullName);
Microsoft.DotNet.Baselines.Tasks (2)
PRCreator.cs (2)
123Path = Path.GetRelativePath(targetDirectory, path), 332Path = path == string.Empty ? item.Path : Path.GetRelativePath(path, item.Path),
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PublishArtifactsInManifestBase.cs (1)
827string relativePath = Path.GetRelativePath(pdbArtifactsBasePath, looseFile);
Microsoft.DotNet.SetupNugetSources.Tests (2)
SetupNugetSourcesFixture.cs (2)
37var relative = Path.GetRelativePath(sourceDir, dir); 43var relative = Path.GetRelativePath(sourceDir, file);
Pipelines.AppHost (1)
AppHost.cs (1)
294var relativePath = Path.GetRelativePath(sourcePath, filePath);
PrepareTests (3)
MinimizeUtil.cs (3)
81var currentRelativeDirectory = Path.GetRelativePath(sourceDirectory, currentDirName); 213var destFileName = Path.GetRelativePath(group.Key, tuple.FilePath.RelativePath); 264var destFilePath = Path.GetRelativePath(group.Key, tuple.FilePath.RelativePath);
PresentationBuildTasks (1)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
1593string path = Path.GetRelativePath(TargetPath + pathOfRelativeSourceFilePath, SourceFileInfo.SourcePath);
RunTests (2)
HelixTestRunner.cs (2)
201.Select(x => Path.GetRelativePath(binDir, x)) 488var relativePath = Path.GetRelativePath(payloadsDir, filePath);