예제 #1
0
        /// <summary>
        /// Create the template output
        /// </summary>
        public virtual string TransformText()
        {
            this.Write("\r\nMicrosoft Visual Studio Solution File, Format Version 12.00\r\n# Visual Studio Ve" +
                       "rsion 16\r\nVisualStudioVersion = 16.0.30611.23\r\nMinimumVisualStudioVersion = 10.0" +
                       ".40219.1\r\n");

            #line 12 "E:\CS\sep_crup_design_pattern\SEP_CRUD_DesignPattern\SEP_CRUD_DesignPattern\Templates\Project\SolutionTemplate.tt"

            //Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FormatFormToGenerate", "FormatFormToGenerate\FormatFormToGenerate.csproj", "{D381F227-62FD-4455-B79A-3D914C95342C}"
            List <ProjectGenerator> projects = generator.GetProjects();
            for (int i = 0; i < projects.Count; i++)
            {
                ProjectGenerator p = projects[i];
                WriteLine("Project(\"{" + p.TypeGuid + "}\") = \"" + p.Name + "\", \"" + p.Name + "\\" + p.GetFileName() + "\", \"{ " + p.Guid + "}\"");
            }



            #line default
            #line hidden
            this.Write("EndProject\r\nGlobal\r\n\tGlobalSection(SolutionConfigurationPlatforms) = preSolution\r" +
                       "\n\t\tDebug|Any CPU = Debug|Any CPU\r\n\t\tRelease|Any CPU = Release|Any CPU\r\n\tEndGloba" +
                       "lSection\r\n\tGlobalSection(ProjectConfigurationPlatforms) = postSolution\r\n\t");

            #line 29 "E:\CS\sep_crup_design_pattern\SEP_CRUD_DesignPattern\SEP_CRUD_DesignPattern\Templates\Project\SolutionTemplate.tt"

            //{D381F227-62FD-4455-B79A-3D914C95342C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
            //{D381F227-62FD-4455-B79A-3D914C95342C}.Debug|Any CPU.Build.0 = Debug|Any CPU
            //{D381F227-62FD-4455-B79A-3D914C95342C}.Release|Any CPU.ActiveCfg = Release|Any CPU
            //{D381F227-62FD-4455-B79A-3D914C95342C}.Release|Any CPU.Build.0 = Release|Any CPU
            for (int i = 0; i < projects.Count; i++)
            {
                ProjectGenerator p = projects[i];
                WriteLine("{" + p.Guid + "}.Debug|Any CPU.ActiveCfg = Debug|Any CPU");
                WriteLine("{" + p.Guid + "}.Debug|Any CPU.Build.0 = Debug|Any CPU");
                WriteLine("{" + p.Guid + "}.Release|Any CPU.ActiveCfg = Release|Any CPU");
                WriteLine("{" + p.Guid + "}.Release|Any CPU.Build.0 = Release|Any CPU");
            }


            #line default
            #line hidden
            this.Write("\tEndGlobalSection\r\n\tGlobalSection(SolutionProperties) = preSolution\r\n\t\tHideSoluti" +
                       "onNode = FALSE\r\n\tEndGlobalSection\r\n\tGlobalSection(ExtensibilityGlobals) = postSo" +
                       "lution\r\n\t\tSolutionGuid = {");

            #line 48 "E:\CS\sep_crup_design_pattern\SEP_CRUD_DesignPattern\SEP_CRUD_DesignPattern\Templates\Project\SolutionTemplate.tt"
            Write(generator.Guid);

            #line default
            #line hidden
            this.Write("}\r\n\tEndGlobalSection\r\nEndGlobal\r\n");
            return(this.GenerationEnvironment.ToString());
        }