private void GenerateProjectSection(Project project, ISlnProject slnProject) { var projectPath = slnProject.GetSuiteRelativeProjectFilePath(project); string relativeProjectFilePath = suiteRoot.GetRelativePathFrom(slnDir, projectPath); string projectGuid = projectGuidManagement.GetGuid(project).ToString("B").ToUpperInvariant(); output.WriteLine("Project(\"{0}\") = \"{1}\", \"{2}\", \"{3}\"", slnProject.ProjectTypeGuid, project.Name, relativeProjectFilePath, projectGuid); var projectDeps = new HashSet <Project>(getProjectSolutionReferences(project)); if (projectDeps.Count > 0) { output.WriteLine("\tProjectSection(ProjectDependencies) = postProject"); foreach (var dependentProject in projectDeps) { var depGuid = projectGuidManagement.GetGuid(dependentProject).ToString("B").ToUpperInvariant(); output.WriteLine("\t\t{0} = {0}", depGuid); } output.WriteLine("\tEndProjectSection"); } output.WriteLine("EndProject"); }
private void GenerateProjectSection(Project project, ISlnProject slnProject) { string relativeProjectFilePath = suiteRoot.GetRelativePathFrom( slnDir, slnProject.GetSuiteRelativeProjectFilePath(project)); string projectGuid = projectGuidManagement.GetGuid(project).ToString("B").ToUpperInvariant(); output.WriteLine("Project(\"{0}\") = \"{1}\", \"{2}\", \"{3}\"", slnProject.ProjectTypeGuid, project.Name, relativeProjectFilePath, projectGuid); var projectDeps = new HashSet<Project>(getProjectSolutionReferences(project)); if (projectDeps.Count > 0) { output.WriteLine("\tProjectSection(ProjectDependencies) = postProject"); foreach (var dependentProject in projectDeps) { var depGuid = projectGuidManagement.GetGuid(dependentProject).ToString("B").ToUpperInvariant(); output.WriteLine("\t\t{0} = {0}", depGuid); } output.WriteLine("\tEndProjectSection"); } output.WriteLine("EndProject"); }