public static bool TryGetGSDEnlistmentRootImplementation(string directory, out string enlistmentRoot, out string errorMessage) { enlistmentRoot = null; string finalDirectory; if (!WindowsFileSystem.TryGetNormalizedPathImplementation(directory, out finalDirectory, out errorMessage)) { return(false); } enlistmentRoot = Paths.GetRoot(finalDirectory, DotGSDRoot); if (enlistmentRoot == null) { errorMessage = $"Failed to find the root directory for {DotGSDRoot} in {finalDirectory}"; return(false); } return(true); }
public bool TryGetNormalizedPath(string path, out string normalizedPath, out string errorMessage) { return(WindowsFileSystem.TryGetNormalizedPathImplementation(path, out normalizedPath, out errorMessage)); }