135 references to PathNormalizer
aspire (54)
Backchannel\AppHostConnectionResolver.cs (2)
304
PathNormalizer
.ResolveSymlinks(appHostPath),
305
PathNormalizer
.ResolveSymlinks(workingDirectory));
Backchannel\AppHostPathComparer.cs (6)
44
PathNormalizer
.ResolveToFilesystemPath(
PathNormalizer
.ResolveSymlinks(leftPath)),
45
PathNormalizer
.ResolveToFilesystemPath(
PathNormalizer
.ResolveSymlinks(rightPath)));
123
return
PathNormalizer
.TryResolveSymlinks(path, out var symlinkResolvedPath) &&
124
PathNormalizer
.TryResolveToFilesystemPath(symlinkResolvedPath, out canonicalPath);
Backchannel\AuxiliaryBackchannelMonitor.cs (2)
257
var normalizedWorkingDirectory =
PathNormalizer
.ResolveToFilesystemPath(workingDirectory);
258
var normalizedAppHostPath =
PathNormalizer
.ResolveToFilesystemPath(appHostPath);
Commands\AgentMcpCommand.cs (2)
145
if (!
PathNormalizer
.TryResolveSymlinks(selectedPath, out var symlinkResolvedPath))
151
_pinnedAppHostPath =
PathNormalizer
.ResolveToFilesystemPath(symlinkResolvedPath);
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 (1)
707
var targetPath =
PathNormalizer
.ResolveToFilesystemPath(selectedAppHostProjectFile.FullName);
Commands\StopCommand.cs (2)
389
var canonicalAppHostPath =
PathNormalizer
.ResolveToFilesystemPath(appHostFile.FullName);
395
PathNormalizer
.ResolveToFilesystemPath(connectionAppHostPath),
Configuration\AspireConfigFile.cs (2)
236
var absolutePath =
PathNormalizer
.NormalizePathForCurrentPlatform(
238
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)
70
var canonicalPath =
PathNormalizer
.ResolveToFilesystemPath(displayPath);
110
PathNormalizer
.ResolveToFilesystemPath(matchingConnection.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)
2336
var configuredAppHostPath =
PathNormalizer
.ResolveToFilesystemPath(
2338
var selectedAppHostPath =
PathNormalizer
.ResolveToFilesystemPath(appHostFile.FullName);
Projects\IntegrationClosureBuilder.cs (2)
141
var integrationCacheFullPath =
PathNormalizer
.ResolveToFilesystemPath(integrationCacheDirectory.FullName);
142
var appHostFullPath =
PathNormalizer
.ResolveToFilesystemPath(appHostDirectory.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)
366
var projectPath =
PathNormalizer
.ResolveToFilesystemPath(projectFile.FullName);
367
var appHostProjectPath =
PathNormalizer
.ResolveToFilesystemPath(appHostProjectFile.FullName);
Scaffolding\ScaffoldingService.cs (2)
324
var relativeAppHostDirectory =
PathNormalizer
.NormalizePathForStorage(Path.GetRelativePath(rootDirectory.FullName, appHostDirectory.FullName));
381
return
PathNormalizer
.NormalizePathForStorage(
src\Shared\AppHostSocketManager.cs (3)
75
appHostId = BackchannelConstants.ComputeAppHostId(
PathNormalizer
.ResolveToFilesystemPath(appHostPath));
221
PathNormalizer
.ResolveToFilesystemPath(appHostPath),
222
PathNormalizer
.ResolveSymlinks(appHostPath),
Aspire.Cli.Tests (81)
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\AgentMcpCommandTests.cs (4)
1714
PathNormalizer
.ResolveToFilesystemPath(
PathNormalizer
.ResolveSymlinks(appHostProjectFile.FullName)),
1747
PathNormalizer
.ResolveToFilesystemPath(
PathNormalizer
.ResolveSymlinks(appHostProjectFile.FullName)),
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)
1626
var resolvedAppHostPath =
PathNormalizer
.ResolveSymlinks(appHostPath);
Commands\UpdateCommandTests.cs (2)
132
PathNormalizer
.ResolveToFilesystemPath(appHostProjectFile.FullName),
133
PathNormalizer
.ResolveToFilesystemPath(updatedProjectFile.FullName));
DotNet\ProcessExecutionDetachedTests.cs (1)
110
$"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 (3)
35
var canonicalPath =
PathNormalizer
.ResolveToFilesystemPath(displayPath);
101
Assert.Equal(
PathNormalizer
.ResolveToFilesystemPath(realAppHostPath), monitor.SelectedAppHostPath);
125
Assert.Equal(
PathNormalizer
.ResolveToFilesystemPath(actualAppHostPath), monitor.SelectedAppHostPath);
Projects\DotNetAppHostProjectTests.cs (1)
2964
var resolvedAppHostPath =
PathNormalizer
.ResolveSymlinks(appHostPath);
Projects\GuestAppHostProjectTests.cs (1)
2132
var resolvedAppHostPath =
PathNormalizer
.ResolveSymlinks(appHostPath);
Projects\PrebuiltAppHostServerTests.cs (3)
691
var normalizedWorkspaceRoot =
PathNormalizer
.ResolveToFilesystemPath(workspace.WorkspaceRoot.FullName);
730
var normalizedWorkspaceRoot =
PathNormalizer
.ResolveToFilesystemPath(workspace.WorkspaceRoot.FullName);
783
PathNormalizer
.ResolveToFilesystemPath(
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 (27)
24
var firstPass =
PathNormalizer
.ResolveSymlinks(file.FullName);
25
var secondPass =
PathNormalizer
.ResolveSymlinks(firstPass);
33
Assert.Equal(string.Empty,
PathNormalizer
.ResolveSymlinks(string.Empty));
51
PathNormalizer
.ResolveSymlinks(file.FullName),
52
PathNormalizer
.ResolveToFilesystemPath(caseVariantPath));
70
PathNormalizer
.ResolveSymlinks(file.FullName),
71
PathNormalizer
.ResolveToFilesystemPath(file.FullName));
80
PathNormalizer
.ResolveSymlinks(workspace.WorkspaceRoot.FullName),
84
Assert.Equal(expectedPath,
PathNormalizer
.ResolveToFilesystemPath(missingPath));
98
var resolved =
PathNormalizer
.ResolveSymlinks(linkPath);
103
Assert.Equal(
PathNormalizer
.ResolveSymlinks(target.FullName), resolved);
127
var resolvedThroughLink =
PathNormalizer
.ResolveSymlinks(pathThroughLink);
128
var resolvedThroughReal =
PathNormalizer
.ResolveSymlinks(file.FullName);
144
var resolved =
PathNormalizer
.ResolveSymlinks(linkPath);
164
var resolved =
PathNormalizer
.ResolveToFilesystemPath(linkPath);
166
Assert.Equal(
PathNormalizer
.ResolveSymlinks(projectFile.FullName), resolved);
186
var resolved =
PathNormalizer
.ResolveToFilesystemPath(logicalPath);
203
var resolved =
PathNormalizer
.ResolveToFilesystemPath(missingPath);
231
PathNormalizer
.ResolveSymlinks(enumeratedPath),
232
PathNormalizer
.ResolveToFilesystemPath(composedPath));
253
PathNormalizer
.ResolveSymlinks(candidate),
254
PathNormalizer
.ResolveToFilesystemPath(candidate));
255
Assert.False(
PathNormalizer
.TryResolveToFilesystemPath(candidate, out var unresolvedPath));
257
Assert.True(
PathNormalizer
.TryResolveToFilesystemPath(caseMatch.FullName, out _));
258
Assert.True(
PathNormalizer
.TryResolveToFilesystemPath(normalizationMatch, out _));
279
Assert.Equal(uppercaseDrivePath,
PathNormalizer
.ResolveToFilesystemPath(lowercaseDrivePath));
294
Assert.False(
PathNormalizer
.TryResolveToFilesystemPath(missingDriveRoot, out var resolvedPath));