internal DefaultProcessedTemplateResult (ProjectTemplate template, IEnumerable<IWorkspaceFileObject> itemsCreated, string projectBasePath) { this.template = template; workspaceItems = itemsCreated.ToList (); SolutionFileName = template.CreatedSolutionName; ProjectBasePath = projectBasePath; }
internal DefaultSolutionTemplate (ProjectTemplate template) : base (template.Id, template.Name, template.Icon.ToString ()) { this.template = template; Description = template.Description; Category = template.Category; Language = template.LanguageName; GroupId = template.GroupId; Condition = template.Condition; ProjectFileExtension = template.FileExtension; Wizard = template.WizardPath; SupportedParameters = template.SupportedParameters; DefaultParameters = template.DefaultParameters; ImageId = template.ImageId; ImageFile = template.ImageFile; Visibility = GetVisibility (template.Visibility); HasProjects = (template.SolutionDescriptor.EntryDescriptors.Length > 0); }
public TemplateItem (ProjectTemplate template) { Name = StringParserService.Parse (template.Name); this.Template = template; if (!string.IsNullOrEmpty (template.Category)) this.Category = template.Category.Split (new char[] { '/' }, StringSplitOptions.RemoveEmptyEntries); else this.Category = new string[0]; }