13 references to GetFolderAbove
Microsoft.Build (5)
BackEnd\Components\Communications\CurrentHost.cs (1)
30string dotnetExe = Path.Combine(FileUtilities.GetFolderAbove(BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, 2),
BuildEnvironmentHelper.cs (4)
150var vsRoot = FileUtilities.GetFolderAbove(vsProcess, 3); 202var msBuildExe = Path.Combine(FileUtilities.GetFolderAbove(buildAssembly), "MSBuild.exe"); 203var msBuildDll = Path.Combine(FileUtilities.GetFolderAbove(buildAssembly), "MSBuild.dll"); 360return FileUtilities.GetFolderAbove(msBuildAssembly,
Microsoft.Build.Engine.UnitTests (8)
FileUtilities_Tests.cs (8)
968Assert.Equal(Path.Combine(root, "1", "2", "3", "4", "5"), FileUtilities.GetFolderAbove(path, 0)); 969Assert.Equal(Path.Combine(root, "1", "2", "3", "4"), FileUtilities.GetFolderAbove(path)); 970Assert.Equal(Path.Combine(root, "1", "2", "3"), FileUtilities.GetFolderAbove(path, 2)); 971Assert.Equal(Path.Combine(root, "1", "2"), FileUtilities.GetFolderAbove(path, 3)); 972Assert.Equal(Path.Combine(root, "1"), FileUtilities.GetFolderAbove(path, 4)); 973Assert.Equal(root, FileUtilities.GetFolderAbove(path, 5)); 974Assert.Equal(root, FileUtilities.GetFolderAbove(path, 99)); 976Assert.Equal(root, FileUtilities.GetFolderAbove(root, 99));