void AddProjects() { int index = textFilePatcher.GetIndexOfLine("Global"); AddProjectDir(ref index); foreach (var project in solutionOptions.AllProjects) { AddProject(ref index, project); } }
void AddProjectConfigurationPlatforms() { int index = textFilePatcher.GetIndexOfLine(Constants.Solution_ProjectConfigurationPlatforms_Line); index = textFilePatcher.GetIndexOfLine(Constants.Solution_EndGlobalSection_Line, index); foreach (var project in solutionOptions.AllProjects) { var projectGuidString = ToString(project.Guid); foreach (var config in Constants.SolutionConfigurations) { foreach (var info in Constants.SolutionPlatforms) { foreach (var buildInfo in Constants.SolutionBuildInfos) { textFilePatcher.Insert(index++, $"\t\t{projectGuidString}.{config}|{info.archName}.{buildInfo} = {config}|{info.configName}"); } } } } }