C24.ReVersion.Versioner.SetVersionForSolution C# (CSharp) Method

SetVersionForSolution() private method

private SetVersionForSolution ( string projectPath, System.Version defaultVersion, string additionalInfo ) : void
projectPath string
defaultVersion System.Version
additionalInfo string
return void
        private void SetVersionForSolution(string projectPath, Version defaultVersion, string additionalInfo)
        {
            var helper = new ProjectPathHelper(this.fileSystem);
            var solutionParser = new SolutionParser(this.fileSystem);

            List<string> projectPaths = solutionParser
                .GetProjectPaths(projectPath)
                .Select(x => helper.ResolveProjectRelativePath(projectPath, x))
                .ToList();

            foreach (string path in projectPaths)
            {
                SetVersionForProject(path, defaultVersion, additionalInfo);
            }
        }