26 references to GetPathRoot
Microsoft.Build (3)
Definition\Toolset.cs (1)
427string rootPath = Path.GetPathRoot(Path.GetFullPath(toolsPathToUse));
Evaluation\Evaluator.cs (1)
1192int rootLength = Path.GetPathRoot(projectDirectory).Length;
Modifiers.cs (1)
214modifiedItemSpec = Path.GetPathRoot(fullPath);
Microsoft.Build.Engine.UnitTests (1)
BackEnd\MSBuild_Tests.cs (1)
68int rootLength = Path.GetPathRoot(tempProject).Length;
Microsoft.Build.Tasks.Core (1)
Modifiers.cs (1)
214modifiedItemSpec = Path.GetPathRoot(fullPath);
Microsoft.Build.Tasks.UnitTests (1)
MSBuild_Tests.cs (1)
70int rootLength = Path.GetPathRoot(tempProject).Length;
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
1842splits[0] = Path.GetPathRoot(path);
Microsoft.Build.Utilities.Core (1)
Modifiers.cs (1)
214modifiedItemSpec = Path.GetPathRoot(fullPath);
Microsoft.Build.Utilities.UnitTests (1)
TaskItem_Tests.cs (1)
195from.GetMetadata(FileUtilities.ItemSpecModifiers.RootDir).ShouldBe(Path.GetPathRoot(from.GetMetadata(FileUtilities.ItemSpecModifiers.FullPath)));
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
CommandLineTests.cs (3)
499{ Path.Combine(Path.GetPathRoot(basePath), @"d.rsp"), @" 2137Assert.Equal(Path.Combine(Path.GetPathRoot(WorkingDirectory), @"MyFolder\MyPdb.pdb"), parsedArgs.PdbPath); 4354string 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
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Logging\FileLogTraceListener.vb (1)
641Dim pathName As String = Path.GetPathRoot(Path.GetFullPath(FullLogFileName))
MSBuild (1)
Modifiers.cs (1)
214modifiedItemSpec = Path.GetPathRoot(fullPath);
MSBuildTaskHost (1)
Modifiers.cs (1)
214modifiedItemSpec = Path.GetPathRoot(fullPath);
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)!);