Ejemplo n.º 1
0
        public static void CreateFileFromTemplate(Solution solution, FilePath templateSourceDirectory, string templateName)
        {
            var project = new DummyProject(string.Empty);

            project.BaseDirectory = solution.BaseDirectory;
            CreateFileFromTemplate(project, solution.RootFolder, templateSourceDirectory, templateName);
        }
        void CreateFilesFromTemplate(string projectDirectory, string projectName, Solution solution)
        {
            string projectTemplateName = Parameters["Template"];

            string[] files = Parameters["Files"].Split('|');

            var project = new DummyProject(projectName)
            {
                BaseDirectory = projectDirectory
            };

            FileTemplateProcessor.CreateFilesFromTemplate(project, solution.RootFolder, projectTemplateName, files);
        }