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