コード例 #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));
        }
コード例 #2
0
 public static DirectoryInfo GetParentOfGitVersionYamlDirectory(string beginningDirectory) =>
 DirectoryTools.GetDirectoryOfFileAbove(BuildTaskExecutorDefaults.GitVersionFileNameWithExtension, beginningDirectory, includeBeginningDirectory: true);