示例#1
0
        private ProjectsProcessingStack LoadProjectsStack(IReadOnlyList <ProjectInSolution> projects, string rootFolder)
        {
            var stack = new ProjectsProcessingStack();

            foreach (var project in projects)
            {
                if (project.ProjectType == SolutionProjectType.KnownToBeMSBuildFormat)
                {
                    Console.WriteLine($"Analyzing {project.ProjectName}...");

                    var nuggetedProject = NuggetedProject.Load(project);
                    if (nuggetedProject.Exists && nuggetedProject.IsValid && nuggetedProject.IsNuggetable && nuggetedProject.IsSupported)
                    {
                        stack.Append(nuggetedProject);
                    }
                }
            }

            stack.Build();

            return(stack);
        }
 public void Append(NuggetedProject project)
 {
 }