public static void UpdateTemplateCategories(IEnumerable <TemplateCategoryViewModel> categories)
        {
            string text = ProjectTemplateCategoriesXmlGenerator.Generate(categories);

            string addinXml = File.ReadAllText(addinXmlTemplateFileName);

            addinXml = addinXml.Replace(PlaceHolderText, text);

            File.WriteAllText(addinXmlFileName, addinXml);

            IsModified = true;
        }
        public static string Generate(IEnumerable <TemplateCategoryViewModel> categories)
        {
            var generator = new ProjectTemplateCategoriesXmlGenerator(categories);

            return(generator.Generate());
        }