166 references to PathNormalizer
aspire (70)
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\AddCommand.cs (1)
552
[
PathNormalizer
.ResolveToFilesystemPath(candidate.TargetFile.FullName)] = candidate.OriginalContent?.ToArray()
Commands\AgentMcpCommand.cs (2)
145
if (!
PathNormalizer
.TryResolveSymlinks(selectedPath, out var symlinkResolvedPath))
151
_pinnedAppHostPath =
PathNormalizer
.ResolveToFilesystemPath(symlinkResolvedPath);
Commands\AppHostLauncher.cs (2)
510
var canonicalAppHostPath =
PathNormalizer
.ResolveToFilesystemPath(appHostPath);
747
PathNormalizer
.ResolveToFilesystemPath(appHostInfo.AppHostPath),
Commands\InitCommand.cs (1)
567
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)
268
var absolutePath =
PathNormalizer
.NormalizePathForCurrentPlatform(
270
config.AppHost.Path =
PathNormalizer
.NormalizePathForStorage(
DotNet\DotNetAppHostNuGetConfigMerger.cs (2)
125
var targetPath =
PathNormalizer
.ResolveToFilesystemPath(targetFile.FullName);
128
PathNormalizer
.ResolveToFilesystemPath(path), targetPath, StringComparisons.FileSystemPath));
DotNet\DotNetAppHostRestorePreview.cs (1)
183
=> $"('$(MSBuildProjectFullPath)' == '{MSBuildEscaping.Escape(path)}' Or '$(MSBuildProjectFullPath)' == '{MSBuildEscaping.Escape(
PathNormalizer
.ResolveToFilesystemPath(path))}')";
DotNet\DotNetAppHostUpdateTransaction.cs (3)
32
var paths = files.Select(static file =>
PathNormalizer
.ResolveToFilesystemPath(file.FullName))
96
var paths = files.Select(static file =>
PathNormalizer
.ResolveToFilesystemPath(file.FullName))
127
var path =
PathNormalizer
.ResolveToFilesystemPath(file.FullName);
DotNet\DotNetCliRunner.cs (1)
688
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)
419
var targetPath =
PathNormalizer
.ResolveToFilesystemPath(targetFile.FullName);
421
PathNormalizer
.ResolveToFilesystemPath(path), targetPath, StringComparisons.FileSystemPath));
449
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)
333
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)
524
var settingsCanonicalPath =
PathNormalizer
.ResolveToFilesystemPath(settingsAppHost.FullName);
532
var candidateCanonicalPath =
PathNormalizer
.ResolveToFilesystemPath(candidate.AppHostFile.FullName);
664
PathNormalizer
.ResolveToFilesystemPath(file.FullName),
665
PathNormalizer
.ResolveToFilesystemPath(directory.FullName));
756
qualifiedPath =
PathNormalizer
.NormalizePathForCurrentPlatform(qualifiedPath);
811
qualifiedAppHostPath =
PathNormalizer
.NormalizePathForCurrentPlatform(qualifiedAppHostPath);
1046
var resolvedProjectPath =
PathNormalizer
.ResolvePathCasing(projectFile.FullName);
1191
:
PathNormalizer
.ResolveToFilesystemPath(settingsAppHost.FullName);
1198
PathNormalizer
.ResolveToFilesystemPath(c.AppHostFile.FullName),
1229
PathNormalizer
.ResolveToFilesystemPath(selectedAppHost.FullName),
1230
PathNormalizer
.ResolveToFilesystemPath(settingsAppHost.FullName),
1246
var selectedAppHostCanonicalPath =
PathNormalizer
.ResolveToFilesystemPath(selectedAppHost.FullName);
1249
PathNormalizer
.ResolveToFilesystemPath(f.FullName),
1277
var persistedCanonicalPath =
PathNormalizer
.ResolveToFilesystemPath(persistedPath);
1278
var selectedCanonicalPath =
PathNormalizer
.ResolveToFilesystemPath(selectedPath);
1314
var resolvedPath =
PathNormalizer
.NormalizePathForCurrentPlatform(
Projects\ProjectUpdater.cs (5)
48
var normalizedPath =
PathNormalizer
.ResolveToFilesystemPath(path);
249
PathNormalizer
.ResolveToFilesystemPath(configurationCandidate.TargetFile.FullName),
608
var path =
PathNormalizer
.ResolveToFilesystemPath(file.FullName);
683
var projectPath =
PathNormalizer
.ResolveToFilesystemPath(projectFile.FullName);
684
var appHostProjectPath =
PathNormalizer
.ResolveToFilesystemPath(appHostProjectFile.FullName);
Scaffolding\ScaffoldingService.cs (2)
341
var relativeAppHostDirectory =
PathNormalizer
.NormalizePathForStorage(Path.GetRelativePath(rootDirectory.FullName, appHostDirectory.FullName));
398
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 (96)
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)
786
.Replace(
PathNormalizer
.NormalizePathForStorage(workspace.WorkspaceRoot.FullName), "{workspace}"))
1126
localPackagesOverride ?
PathNormalizer
.NormalizePathForStorage(packages.FullName) : "https://nuget.example/v3/index.json?first=1&second=2",
1131
.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)
717
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 (8)
29
[
PathNormalizer
.ResolveToFilesystemPath(file.FullName)] = await File.ReadAllBytesAsync(file.FullName)
56
[
PathNormalizer
.ResolveToFilesystemPath(file.FullName)] = original
89
[
PathNormalizer
.ResolveToFilesystemPath(file.FullName)] = await File.ReadAllBytesAsync(file.FullName)
119
[
PathNormalizer
.ResolveToFilesystemPath(file.FullName)] = await File.ReadAllBytesAsync(file.FullName)
150
[
PathNormalizer
.ResolveToFilesystemPath(file.FullName)] = original
178
[
PathNormalizer
.ResolveToFilesystemPath(file.FullName)] = original
214
[
PathNormalizer
.ResolveToFilesystemPath(file.FullName)] = original
237
[
PathNormalizer
.ResolveToFilesystemPath(file.FullName)] = original
DotNet\ProcessExecutionDetachedTests.cs (1)
113
$"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)
2550
var resolvedAppHostPath =
PathNormalizer
.ResolveSymlinks(appHostPath);
Projects\PrebuiltAppHostServerTests.cs (3)
1011
var normalizedWorkspaceRoot =
PathNormalizer
.ResolveToFilesystemPath(workspace.WorkspaceRoot.FullName);
1241
var normalizedWorkspaceRoot =
PathNormalizer
.ResolveToFilesystemPath(workspace.WorkspaceRoot.FullName);
1294
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 (31)
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));
248
PathNormalizer
.ResolveSymlinks(enumeratedPath),
249
PathNormalizer
.ResolveToFilesystemPath(alias));
250
Assert.True(
PathNormalizer
.TryResolveToFilesystemPath(alias, out var resolvedPath));
252
Assert.True(
PathNormalizer
.TryResolveToFilesystemPath(onDisk.FullName, out _));
273
PathNormalizer
.ResolveSymlinks(candidate),
274
PathNormalizer
.ResolveToFilesystemPath(candidate));
275
Assert.False(
PathNormalizer
.TryResolveToFilesystemPath(candidate, out var unresolvedPath));
277
Assert.True(
PathNormalizer
.TryResolveToFilesystemPath(caseMatch.FullName, out _));
278
Assert.True(
PathNormalizer
.TryResolveToFilesystemPath(normalizationMatch, out _));
299
Assert.Equal(uppercaseDrivePath,
PathNormalizer
.ResolveToFilesystemPath(lowercaseDrivePath));
314
Assert.False(
PathNormalizer
.TryResolveToFilesystemPath(missingDriveRoot, out var resolvedPath));