Exemplo n.º 1
0
        public GeneratorResult GenerateProjectFile(IEnumerable <GeneratorResult> fileNames)
        {
            var projectFileTemplate = new ProjectFileTemplate(fileNames.ToList());

            return(new GeneratorResult()
            {
                TemplateText = projectFileTemplate.TransformText(),
                FileName = "MiCaseCodeGeneratorResult.csproj"
            });
        }
Exemplo n.º 2
0
        public static string GenProjectFile(string GUIDString)
        {
            string ret            = "";
            ProjectFileTemplate t = new ProjectFileTemplate();

            t.Session = new TextTemplatingSession();
            t.Session["GUIDString"] = GUIDString;
            t.Session["ProjCode"]   = projOption.ProjCode;
            t.Initialize();
            ret = t.TransformText();
            return(ret);
        }