112 references to PathNormalizer
aspire (49)
Backchannel\AppHostConnectionHelper.cs (2)
51
var selectedCanonicalPath =
PathNormalizer
.ResolveToFilesystemPath(selectedPath);
55
PathNormalizer
.ResolveToFilesystemPath(c.AppHostInfo.AppHostPath),
Backchannel\AppHostConnectionResolver.cs (2)
302
PathNormalizer
.ResolveSymlinks(appHostPath),
303
PathNormalizer
.ResolveSymlinks(workingDirectory));
Backchannel\AuxiliaryBackchannelMonitor.cs (4)
174
var selectedCanonicalPath =
PathNormalizer
.ResolveToFilesystemPath(selectedAppHostPath);
178
PathNormalizer
.ResolveToFilesystemPath(c.AppHostInfo.AppHostPath),
229
var normalizedWorkingDirectory =
PathNormalizer
.ResolveToFilesystemPath(workingDirectory);
230
var normalizedAppHostPath =
PathNormalizer
.ResolveToFilesystemPath(appHostPath);
Commands\AppHostLauncher.cs (2)
491
var canonicalAppHostPath =
PathNormalizer
.ResolveToFilesystemPath(appHostPath);
728
PathNormalizer
.ResolveToFilesystemPath(appHostInfo.AppHostPath),
Commands\InitCommand.cs (1)
503
var displayPath =
PathNormalizer
.NormalizePathForStorage(Path.GetRelativePath(workingDirectory.FullName, appHostPath));
Commands\ResourceCommand.cs (2)
707
var targetPath =
PathNormalizer
.ResolveToFilesystemPath(selectedAppHostProjectFile.FullName);
725
PathNormalizer
.ResolveToFilesystemPath(appHostPath),
Commands\StopCommand.cs (2)
295
var canonicalAppHostPath =
PathNormalizer
.ResolveToFilesystemPath(appHostFile.FullName);
301
PathNormalizer
.ResolveToFilesystemPath(connectionAppHostPath),
Configuration\AspireConfigFile.cs (2)
199
var absolutePath =
PathNormalizer
.NormalizePathForCurrentPlatform(
201
config.AppHost.Path =
PathNormalizer
.NormalizePathForStorage(
DotNet\DotNetCliRunner.cs (1)
644
var resolvedProcessPath =
PathNormalizer
.ResolveSymlinks(processPath);
Git\GitWorktree.cs (1)
354
var resolvedPath =
PathNormalizer
.ResolveSymlinks(path);
Mcp\Tools\SelectAppHostTool.cs (2)
64
var canonicalPath =
PathNormalizer
.ResolveToFilesystemPath(displayPath);
75
PathNormalizer
.ResolveToFilesystemPath(c.AppHostInfo.AppHostPath),
Packaging\PackagingService.cs (1)
280
var packagesPath =
PathNormalizer
.NormalizePathForStorage(packagesDirectory.FullName);
Projects\AppHostWorkloadId.cs (1)
34
var normalizedPath =
PathNormalizer
.ResolveSymlinks(appHostPath);
Projects\DotNetAppHostProject.cs (2)
2317
var configuredAppHostPath =
PathNormalizer
.ResolveToFilesystemPath(
2319
var selectedAppHostPath =
PathNormalizer
.ResolveToFilesystemPath(appHostFile.FullName);
Projects\ProjectLocator.cs (17)
486
var settingsCanonicalPath =
PathNormalizer
.ResolveToFilesystemPath(settingsAppHost.FullName);
494
var candidateCanonicalPath =
PathNormalizer
.ResolveToFilesystemPath(candidate.AppHostFile.FullName);
624
PathNormalizer
.ResolveToFilesystemPath(file.FullName),
625
PathNormalizer
.ResolveToFilesystemPath(directory.FullName));
716
qualifiedPath =
PathNormalizer
.NormalizePathForCurrentPlatform(qualifiedPath);
771
qualifiedAppHostPath =
PathNormalizer
.NormalizePathForCurrentPlatform(qualifiedAppHostPath);
993
var resolvedProjectPath =
PathNormalizer
.ResolvePathCasing(projectFile.FullName);
1135
:
PathNormalizer
.ResolveToFilesystemPath(settingsAppHost.FullName);
1142
PathNormalizer
.ResolveToFilesystemPath(c.AppHostFile.FullName),
1173
PathNormalizer
.ResolveToFilesystemPath(selectedAppHost.FullName),
1174
PathNormalizer
.ResolveToFilesystemPath(settingsAppHost.FullName),
1190
var selectedAppHostCanonicalPath =
PathNormalizer
.ResolveToFilesystemPath(selectedAppHost.FullName);
1193
PathNormalizer
.ResolveToFilesystemPath(f.FullName),
1221
var persistedCanonicalPath =
PathNormalizer
.ResolveToFilesystemPath(persistedPath);
1222
var selectedCanonicalPath =
PathNormalizer
.ResolveToFilesystemPath(selectedPath);
1257
var resolvedPath =
PathNormalizer
.NormalizePathForCurrentPlatform(
1391
var normalizedSettingsPath =
PathNormalizer
.ResolveSymlinks(settingsFile.FullName)
Projects\ProjectUpdater.cs (2)
360
var projectPath =
PathNormalizer
.ResolveToFilesystemPath(projectFile.FullName);
361
var appHostProjectPath =
PathNormalizer
.ResolveToFilesystemPath(appHostProjectFile.FullName);
Scaffolding\ScaffoldingService.cs (2)
311
var relativeAppHostDirectory =
PathNormalizer
.NormalizePathForStorage(Path.GetRelativePath(rootDirectory.FullName, appHostDirectory.FullName));
368
return
PathNormalizer
.NormalizePathForStorage(
src\Shared\AppHostSocketManager.cs (3)
74
appHostId = BackchannelConstants.ComputeAppHostId(
PathNormalizer
.ResolveToFilesystemPath(appHostPath));
196
PathNormalizer
.ResolveToFilesystemPath(appHostPath),
197
PathNormalizer
.ResolveSymlinks(appHostPath),
Aspire.Cli.Tests (63)
Backchannel\AppHostConnectionResolverTests.cs (3)
343
var previousSocketKeyPath =
PathNormalizer
.ResolveSymlinks(differentlyCasedProjectPath);
344
Assert.NotEqual(
PathNormalizer
.ResolveToFilesystemPath(differentlyCasedProjectPath), previousSocketKeyPath);
565
PathNormalizer
.ResolveToFilesystemPath(appHostPath),
Backchannel\BackchannelConstantsTests.cs (7)
349
var resolvedAppHostPath =
PathNormalizer
.ResolveSymlinks(appHostPath);
394
PathNormalizer
.ResolveToFilesystemPath(projectFileViaSymlink),
395
PathNormalizer
.ResolveSymlinks(projectFileViaSymlink),
398
Assert.Equal(
PathNormalizer
.ResolveToFilesystemPath(projectFileViaSymlink), socketKeyPaths[0]);
400
Assert.Contains(
PathNormalizer
.ResolveSymlinks(projectFileViaSymlink), socketKeyPaths);
447
var resolvedViaSymlink =
PathNormalizer
.ResolveToFilesystemPath(projectFileViaSymlink);
448
var resolvedRealTarget =
PathNormalizer
.ResolveToFilesystemPath(realProjectPath);
Commands\AppHostLauncherTests.cs (7)
282
PathNormalizer
.ResolveToFilesystemPath(harness.LocatedAppHostFile.FullName));
1417
var resolvedAppHostPath =
PathNormalizer
.ResolveToFilesystemPath(AppHostFile.FullName);
1848
PathNormalizer
.ResolveToFilesystemPath("/tmp/AppHost.csproj"),
1864
PathNormalizer
.ResolveToFilesystemPath("/tmp/AppHost.csproj"),
1882
PathNormalizer
.ResolveToFilesystemPath("/tmp/AppHost.csproj"),
1900
PathNormalizer
.ResolveToFilesystemPath("/tmp/AppHost.csproj"),
1912
PathNormalizer
.ResolveToFilesystemPath("/tmp/AppHost.csproj"),
Commands\RestoreCommandTests.cs (2)
48
PathNormalizer
.ResolveToFilesystemPath(appHostFile.FullName),
49
PathNormalizer
.ResolveToFilesystemPath(capturedProjectFilePath));
Commands\RunCommandTests.cs (1)
5445
var resolvedAppHostPath =
PathNormalizer
.ResolveSymlinks(appHostFile.FullName);
Commands\StartCommandTests.cs (1)
679
var resolvedAppHostPath =
PathNormalizer
.ResolveSymlinks(appHostFile.FullName);
Commands\StopCommandTests.cs (1)
1301
var resolvedAppHostPath =
PathNormalizer
.ResolveSymlinks(appHostPath);
Commands\UpdateCommandTests.cs (2)
132
PathNormalizer
.ResolveToFilesystemPath(appHostProjectFile.FullName),
133
PathNormalizer
.ResolveToFilesystemPath(updatedProjectFile.FullName));
DotNet\ProcessExecutionDetachedTests.cs (1)
107
$"cwd={
PathNormalizer
.ResolveSymlinks(workspace.WorkspaceRoot.FullName)}",
Git\GitWorktreeTests.cs (10)
38
Assert.Equal(
PathNormalizer
.ResolveSymlinks(worktreeRoot), linkedRoot);
56
Assert.Equal(
PathNormalizer
.ResolveSymlinks(worktreeRoot), linkedRoot);
72
Assert.Equal(
PathNormalizer
.ResolveSymlinks(worktreeRoot), linkedRoot);
107
Assert.Equal(
PathNormalizer
.ResolveSymlinks(worktreeRoot), linkedRoot);
132
Assert.Equal(
PathNormalizer
.ResolveSymlinks(worktreeRoot), linkedRoot);
169
Assert.Equal(
PathNormalizer
.ResolveSymlinks(worktreeRoot), linkedRoot);
192
Assert.Equal(
PathNormalizer
.ResolveSymlinks(worktreeRoot), linkedRoot);
209
?
PathNormalizer
.ResolveSymlinks(worktreeRoot)
230
?
PathNormalizer
.ResolveSymlinks(worktreeRoot)
269
Assert.Equal(
PathNormalizer
.ResolveSymlinks(worktreeRoot), linkedRoot);
Mcp\SelectAppHostToolTests.cs (1)
33
var canonicalPath =
PathNormalizer
.ResolveToFilesystemPath(displayPath);
Projects\DotNetAppHostProjectTests.cs (1)
2860
var resolvedAppHostPath =
PathNormalizer
.ResolveSymlinks(appHostPath);
Projects\GuestAppHostProjectTests.cs (1)
1511
var resolvedAppHostPath =
PathNormalizer
.ResolveSymlinks(appHostPath);
Projects\ProjectLocatorTests.cs (7)
60
Assert.Equal(
PathNormalizer
.ResolveToFilesystemPath(expected),
PathNormalizer
.ResolveToFilesystemPath(actual));
340
appHostProjectFiles.Select(appHostProjectFile =>
PathNormalizer
.ResolveToFilesystemPath(appHostProjectFile.FullName)),
341
results.Select(result =>
PathNormalizer
.ResolveToFilesystemPath(result.SelectedProjectFile!.FullName)));
1483
PathNormalizer
.ResolvePathCasing(linkedProjectFile.FullName),
1486
PathNormalizer
.ResolveToFilesystemPath(linkedProjectFile.FullName),
2024
Assert.Equal(
PathNormalizer
.ResolvePathCasing(appHostFile.FullName), result!.FullName);
Utils\PathNormalizerTests.cs (18)
23
var firstPass =
PathNormalizer
.ResolveSymlinks(file.FullName);
24
var secondPass =
PathNormalizer
.ResolveSymlinks(firstPass);
32
Assert.Equal(string.Empty,
PathNormalizer
.ResolveSymlinks(string.Empty));
50
PathNormalizer
.ResolveSymlinks(file.FullName),
51
PathNormalizer
.ResolveToFilesystemPath(caseVariantPath));
69
PathNormalizer
.ResolveSymlinks(file.FullName),
70
PathNormalizer
.ResolveToFilesystemPath(file.FullName));
79
PathNormalizer
.ResolveSymlinks(workspace.WorkspaceRoot.FullName),
83
Assert.Equal(expectedPath,
PathNormalizer
.ResolveToFilesystemPath(missingPath));
97
var resolved =
PathNormalizer
.ResolveSymlinks(linkPath);
102
Assert.Equal(
PathNormalizer
.ResolveSymlinks(target.FullName), resolved);
126
var resolvedThroughLink =
PathNormalizer
.ResolveSymlinks(pathThroughLink);
127
var resolvedThroughReal =
PathNormalizer
.ResolveSymlinks(file.FullName);
143
var resolved =
PathNormalizer
.ResolveSymlinks(linkPath);
163
var resolved =
PathNormalizer
.ResolveToFilesystemPath(linkPath);
165
Assert.Equal(
PathNormalizer
.ResolveSymlinks(projectFile.FullName), resolved);
185
var resolved =
PathNormalizer
.ResolveToFilesystemPath(logicalPath);
202
var resolved =
PathNormalizer
.ResolveToFilesystemPath(missingPath);