예제 #1
0
        public void CreateProject(string prjName)
        {
            string httddName = prjName + ".conf";
            string pkgName = prjName + ".pkg.html";
            string appRootFolder = prjName;
            Project project = new Project(prjName);
            project.MsRoot = HttpContext.Current.Server.MapPath("/DirBase/" + prjName);
            project.AppRootFolder = appRootFolder;
            project.HttpddRootFileName = httddName;
            project.PkgRootFileName = pkgName;

            project.SavePkg(Pkg.GetDefaultPkgHtml(prjName, prjName));
            project.SaveHttpdd(Httpdd.GetDefaultHttpddHtml(prjName));

            project.CreateData();
            project.CreateDocs();
            project.CreateEtc();
            project.CreategGraphics();
            project.CreateXMF();
        }
예제 #2
0
        public string LoadJsonString(string prjName, string relatePath)
        {
            string httddName = prjName + ".conf";
            string pkgName = prjName + ".pkg.html";
            string appRootFolder = prjName;
            Project project = new Project(prjName);
            project.MsRoot = HttpContext.Current.Server.MapPath("/DirBase/");
            project.AppRootFolder = appRootFolder;
            project.HttpddRootFileName = httddName;
            project.PkgRootFileName = pkgName;

            return JsonConvert.SerializeObject(project.LoadJsonObject(relatePath));
        }