14 references to GetPathRoot
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
CommandLineTests.cs (3)
499{ Path.Combine(Path.GetPathRoot(basePath), @"d.rsp"), @" 2148Assert.Equal(Path.Combine(Path.GetPathRoot(WorkingDirectory), @"MyFolder\MyPdb.pdb"), parsedArgs.PdbPath); 4365string root = Path.GetPathRoot(srcDirectory); // Make sure we pick a drive that exists and is plugged in to avoid 'Drive not ready'
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
InteractiveSessionTests.cs (1)
1256string root = Path.GetPathRoot(file.Path);
Microsoft.DotNet.Build.Tasks.Packaging.Tests (1)
HarvestPackageTests.cs (1)
65candidate != Path.GetPathRoot(candidate);
Microsoft.VisualBasic.Core (5)
Microsoft\VisualBasic\CompilerServices\IOUtils.vb (1)
43DirName = Path.GetPathRoot(PathName)
Microsoft\VisualBasic\FileIO\FileSystem.vb (4)
1540Return String.Equals(IO.Path.GetPathRoot(Path1), IO.Path.GetPathRoot(Path2), StringComparison.OrdinalIgnoreCase) 1561Return String.Equals(Path, IO.Path.GetPathRoot(Path), StringComparison.OrdinalIgnoreCase) 1576If Path.Equals(IO.Path.GetPathRoot(Path), StringComparison.OrdinalIgnoreCase) Then
System.Configuration.ConfigurationManager (1)
System\Configuration\UrlPath.cs (1)
15return Path.GetDirectoryName(path) ?? Path.GetPathRoot(path);
System.Drawing.Common.Tests (1)
System\Drawing\IconTests.cs (1)
358string bitmapPathRoot = Path.GetPathRoot(bitmapPath);
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\IO\Directory.cs (1)
255string root = Path.GetPathRoot(fullPath)!;
src\libraries\System.Private.CoreLib\src\System\IO\DirectoryInfo.cs (1)
204public DirectoryInfo Root => new DirectoryInfo(Path.GetPathRoot(FullPath)!);