private void buildProjectPlan(TemplatePlan plan, ProjectRequest proj) { var projectPlan = new ProjectPlan(proj.Name) { DotNetVersion = proj.Version ?? DotNetVersion.V40 }; plan.Add(projectPlan); proj.Substitutions.CopyTo(projectPlan.Substitutions); var planner = new ProjectPlanner(); if (proj.Template.IsNotEmpty()) { planner.CreatePlan(_library.Find(TemplateType.Project, proj.Template), plan); } _library.Find(TemplateType.Alteration, proj.Alterations) .Each(template => planner.CreatePlan(template, plan)); }
private void buildProjectPlan(TemplatePlan plan, ProjectRequest proj) { var projectPlan = new ProjectPlan(proj.Name) {DotNetVersion = proj.Version ?? DotNetVersion.V40}; plan.Add(projectPlan); proj.Substitutions.CopyTo(projectPlan.Substitutions); var planner = new ProjectPlanner(); if (proj.Template.IsNotEmpty()) { planner.CreatePlan(_library.Find(TemplateType.Project, proj.Template), plan); } _library.Find(TemplateType.Alteration, proj.Alterations) .Each(template => planner.CreatePlan(template, plan)); }