Ejemplo n.º 1
0
        public static DirectoryInfo?GetRootDirectory()
        {
            var directory = AppDomain.CurrentDomain.BaseDirectory ??
                            throw new ArgumentNullException("Current app domain directory is null.");

            return(DirectoryTools.GetDirectoryOfFileAbove(".msbuild", directory));
        }
 public static DirectoryInfo GetParentOfGitVersionYamlDirectory(string beginningDirectory) =>
 DirectoryTools.GetDirectoryOfFileAbove(BuildTaskExecutorDefaults.GitVersionFileNameWithExtension, beginningDirectory, includeBeginningDirectory: true);