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(); }
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)); }