156 references to PathNormalizer
aspire (68)
Backchannel\AppHostConnectionResolver.cs (2)
327
PathNormalizer
.ResolveSymlinks(appHostPath),
328
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)
529
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)
250
var absolutePath =
PathNormalizer
.NormalizePathForCurrentPlatform(
252
config.AppHost.Path =
PathNormalizer
.NormalizePathForStorage(
DotNet\DotNetAppHostNuGetConfigMerger.cs (2)
115
var targetPath =
PathNormalizer
.ResolveToFilesystemPath(targetFile.FullName);
118
PathNormalizer
.ResolveToFilesystemPath(path), targetPath, StringComparisons.FileSystemPath));
DotNet\DotNetAppHostRestorePreview.cs (1)
110
=> $"('$(MSBuildProjectFullPath)' == '{MSBuildEscaping.Escape(path)}' Or '$(MSBuildProjectFullPath)' == '{MSBuildEscaping.Escape(
PathNormalizer
.ResolveToFilesystemPath(path))}')";
DotNet\DotNetAppHostUpdateTransaction.cs (2)
30
var paths = files.Select(static file =>
PathNormalizer
.ResolveToFilesystemPath(file.FullName))
61
var path =
PathNormalizer
.ResolveToFilesystemPath(file.FullName);
DotNet\DotNetCliRunner.cs (1)
677
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);
NuGet\BundleNuGetService.cs (4)
371
var targetPath =
PathNormalizer
.ResolveToFilesystemPath(targetFile.FullName);
373
PathNormalizer
.ResolveToFilesystemPath(path), targetPath, StringComparisons.FileSystemPath));
401
PathNormalizer
.ResolveToFilesystemPath(ancestor),
PathNormalizer
.ResolveToFilesystemPath(directory));
Packaging\PackagingService.cs (1)
279
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\FallbackProjectParser.cs (1)
331
var fullPath = Path.GetFullPath(
PathNormalizer
.NormalizePathForStorage(include), projectFile.DirectoryName!);
Projects\IntegrationClosureBuilder.cs (2)
175
var integrationCacheFullPath =
PathNormalizer
.ResolveToFilesystemPath(integrationCacheDirectory.FullName);
176
var appHostFullPath =
PathNormalizer
.ResolveToFilesystemPath(appHostDirectory.FullName);
Projects\ProjectLocator.cs (16)
484
var settingsCanonicalPath =
PathNormalizer
.ResolveToFilesystemPath(settingsAppHost.FullName);
492
var candidateCanonicalPath =
PathNormalizer
.ResolveToFilesystemPath(candidate.AppHostFile.FullName);
622
PathNormalizer
.ResolveToFilesystemPath(file.FullName),
623
PathNormalizer
.ResolveToFilesystemPath(directory.FullName));
714
qualifiedPath =
PathNormalizer
.NormalizePathForCurrentPlatform(qualifiedPath);
769
qualifiedAppHostPath =
PathNormalizer
.NormalizePathForCurrentPlatform(qualifiedAppHostPath);
1001
var resolvedProjectPath =
PathNormalizer
.ResolvePathCasing(projectFile.FullName);
1143
:
PathNormalizer
.ResolveToFilesystemPath(settingsAppHost.FullName);
1150
PathNormalizer
.ResolveToFilesystemPath(c.AppHostFile.FullName),
1181
PathNormalizer
.ResolveToFilesystemPath(selectedAppHost.FullName),
1182
PathNormalizer
.ResolveToFilesystemPath(settingsAppHost.FullName),
1198
var selectedAppHostCanonicalPath =
PathNormalizer
.ResolveToFilesystemPath(selectedAppHost.FullName);
1201
PathNormalizer
.ResolveToFilesystemPath(f.FullName),
1229
var persistedCanonicalPath =
PathNormalizer
.ResolveToFilesystemPath(persistedPath);
1230
var selectedCanonicalPath =
PathNormalizer
.ResolveToFilesystemPath(selectedPath);
1266
var resolvedPath =
PathNormalizer
.NormalizePathForCurrentPlatform(
Projects\ProjectUpdater.cs (5)
42
var normalizedPath =
PathNormalizer
.ResolveToFilesystemPath(path);
236
PathNormalizer
.ResolveToFilesystemPath(configurationCandidate.TargetFile.FullName),
564
var path =
PathNormalizer
.ResolveToFilesystemPath(file.FullName);
637
var projectPath =
PathNormalizer
.ResolveToFilesystemPath(projectFile.FullName);
638
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),
Utils\ConfigurationHelper.cs (2)
118
var normalizedSettingsPath =
PathNormalizer
.ResolveSymlinks(settingsFile.FullName)
339
if (!
PathNormalizer
.TryResolveSymlinks(filePath, out var resolvedPath))
Aspire.Cli.Tests (88)
Backchannel\AppHostConnectionResolverTests.cs (3)
431
var previousSocketKeyPath =
PathNormalizer
.ResolveSymlinks(differentlyCasedProjectPath);
432
Assert.NotEqual(
PathNormalizer
.ResolveToFilesystemPath(differentlyCasedProjectPath), previousSocketKeyPath);
658
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\NewCommandLocalTemplateTests.cs (3)
785
.Replace(
PathNormalizer
.NormalizePathForStorage(workspace.WorkspaceRoot.FullName), "{workspace}"))
1125
localPackagesOverride ?
PathNormalizer
.NormalizePathForStorage(packages.FullName) : "https://nuget.example/v3/index.json?first=1&second=2",
1130
.Replace(
PathNormalizer
.NormalizePathForStorage(workspace.WorkspaceRoot.FullName), "{workspace}"))
Commands\RestoreCommandTests.cs (2)
48
PathNormalizer
.ResolveToFilesystemPath(appHostFile.FullName),
49
PathNormalizer
.ResolveToFilesystemPath(capturedProjectFilePath));
Commands\RunCommandTests.cs (1)
5502
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\DotNetAppHostUpdateTransactionTests.cs (4)
28
[
PathNormalizer
.ResolveToFilesystemPath(file.FullName)] = original
56
[
PathNormalizer
.ResolveToFilesystemPath(file.FullName)] = original
92
[
PathNormalizer
.ResolveToFilesystemPath(file.FullName)] = original
115
[
PathNormalizer
.ResolveToFilesystemPath(file.FullName)] = original
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)
3012
var resolvedAppHostPath =
PathNormalizer
.ResolveSymlinks(appHostPath);
Projects\GuestAppHostProjectTests.cs (1)
2547
var resolvedAppHostPath =
PathNormalizer
.ResolveSymlinks(appHostPath);
Projects\PrebuiltAppHostServerTests.cs (3)
892
var normalizedWorkspaceRoot =
PathNormalizer
.ResolveToFilesystemPath(workspace.WorkspaceRoot.FullName);
1122
var normalizedWorkspaceRoot =
PathNormalizer
.ResolveToFilesystemPath(workspace.WorkspaceRoot.FullName);
1175
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)));
1485
PathNormalizer
.ResolvePathCasing(linkedProjectFile.FullName),
1488
PathNormalizer
.ResolveToFilesystemPath(linkedProjectFile.FullName),
2026
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));