42 references to TrimEndingDirectorySeparator
aspire (5)
Git\GitWorktree.cs (1)
212var adminParent = Directory.GetParent(Path.TrimEndingDirectorySeparator(canonicalAdminDirectory));
Projects\TypeScriptAppHostToolchainResolver.cs (3)
427var parentPath = Path.TrimEndingDirectorySeparator(parentDirectory.FullName); 428if (string.Equals(parentPath, Path.TrimEndingDirectorySeparator(parentDirectory.Root.FullName), pathComparison)) 435!string.Equals(parentPath, Path.TrimEndingDirectorySeparator(Path.GetFullPath(homeDirectory)), pathComparison);
Templating\OutputPathHelper.cs (1)
146var normalizedOutputPath = Path.TrimEndingDirectorySeparator(outputPath);
Aspire.Cli.Tests (1)
ProfileCaptureOptionsTests.cs (1)
101Assert.Equal(Path.TrimEndingDirectorySeparator(Path.GetFullPath(outputDirectory)), Path.GetDirectoryName(options.OutputPath));
Aspire.Hosting (2)
DistributedApplicationOptions.cs (2)
151return Path.GetFileName(Path.TrimEndingDirectorySeparator(projectDirectory)); 157: Path.GetFileName(Path.TrimEndingDirectorySeparator(appHostDirectory));
Aspire.Hosting.Browsers (2)
BrowserEndpointDiscovery.cs (1)
247private static string NormalizePath(string path) => Path.TrimEndingDirectorySeparator(Path.GetFullPath(path));
IBrowserHost.cs (1)
172return Path.TrimEndingDirectorySeparator(rooted);
Aspire.Hosting.Browsers.Tests (2)
src\Aspire.Hosting.Browsers\BrowserEndpointDiscovery.cs (1)
247private static string NormalizePath(string path) => Path.TrimEndingDirectorySeparator(Path.GetFullPath(path));
src\Aspire.Hosting.Browsers\IBrowserHost.cs (1)
172return Path.TrimEndingDirectorySeparator(rooted);
Aspire.Hosting.Java (2)
JavaHostingExtensions.cs (2)
1963Path.TrimEndingDirectorySeparator(Path.GetFullPath(left)), 1964Path.TrimEndingDirectorySeparator(Path.GetFullPath(right)),
Aspire.Hosting.Rust (1)
RustHostingExtensions.cs (1)
595workingDirectory = Path.TrimEndingDirectorySeparator(Path.GetFullPath(workingDirectory));
Aspire.Hosting.Sdk.Tests (10)
AppHostSdkTargetsTests.cs (10)
663Assert.Equal(dnxBundle.DcpDirectory, Path.TrimEndingDirectorySeparator(properties["DcpDir"])); 664Assert.Equal(dnxBundle.ManagedDirectory, Path.TrimEndingDirectorySeparator(properties["AspireDashboardDir"])); 666Assert.NotEqual(staleBundle.DcpDirectory, Path.TrimEndingDirectorySeparator(properties["DcpDir"])); 691Assert.Equal(selectedBundle.DcpDirectory, Path.TrimEndingDirectorySeparator(properties["DcpDir"])); 692Assert.Equal(selectedBundle.ManagedDirectory, Path.TrimEndingDirectorySeparator(properties["AspireDashboardDir"])); 719Assert.Equal(selectedBundle.DcpDirectory, Path.TrimEndingDirectorySeparator(properties["DcpDir"])); 720Assert.Equal(selectedBundle.ManagedDirectory, Path.TrimEndingDirectorySeparator(properties["AspireDashboardDir"])); 722Assert.NotEqual(staleBundle.DcpDirectory, Path.TrimEndingDirectorySeparator(properties["DcpDir"])); 746Assert.Equal(selectedBundle.DcpDirectory, Path.TrimEndingDirectorySeparator(properties["DcpDir"])); 747Assert.Equal(selectedBundle.ManagedDirectory, Path.TrimEndingDirectorySeparator(properties["AspireDashboardDir"]));
dotnet (1)
Commands\Test\MTP\TestResultsDirectoryResolver.cs (1)
154string normalizedRoot = Path.TrimEndingDirectorySeparator(Path.GetFullPath(root));
dotnet-aot (1)
SdkRootLocator.cs (1)
148static string Normalize(string path) => Path.TrimEndingDirectorySeparator(Path.GetFullPath(path));
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
193string dotNetPath = Path.TrimEndingDirectorySeparator(DotNetPath);
Microsoft.DotNet.HotReload.Watch (2)
Build\FilePathExclusions.cs (1)
58outputDirectories.Add(Path.TrimEndingDirectorySeparator(Path.GetFullPath(dir)));
Utilities\PathUtilities.cs (1)
27fullPath = Path.TrimEndingDirectorySeparator(fullPath);
System.Console (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
176string? parentPath = Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(fullPath));
System.Formats.Tar (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
176string? parentPath = Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(fullPath));
System\Formats\Tar\TarHeader.Write.cs (1)
1151ReadOnlySpan<char> tmp = Path.TrimEndingDirectorySeparator(Path.GetTempPath());
System.IO.FileSystem.DriveInfo (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
176string? parentPath = Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(fullPath));
System.IO.FileSystem.Watcher (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
176string? parentPath = Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(fullPath));
System\IO\FileSystemWatcher.Linux.cs (1)
1030BasePath = System.IO.Path.TrimEndingDirectorySeparator(System.IO.Path.GetFullPath(fsw.Path));
System.IO.MemoryMappedFiles (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
176string? parentPath = Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(fullPath));
System.IO.Pipes (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
176string? parentPath = Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(fullPath));
System.IO.Ports (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
176string? parentPath = Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(fullPath));
System.Private.CoreLib (3)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
176string? parentPath = Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(fullPath));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\DirectoryInfo.cs (1)
67string? parentName = Path.GetDirectoryName(PathInternal.IsRoot(FullPath.AsSpan()) ? FullPath : Path.TrimEndingDirectorySeparator(FullPath));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerator.cs (1)
38_rootDirectory = Path.TrimEndingDirectorySeparator(path);