Ejemplo n.º 1
0
        public static void PackageProject()
        {
            //ProjectArchive a = new ProjectArchive(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location),
            //    new VistaDBProjectPackage());

            //a.MsgReport = new ReportMessage(delegate(string msg) { Console.WriteLine(msg); });
            //a.ProgressReport = new ReportProgress(delegate(float percent) { Console.WriteLine((percent * 100).ToString("0") + "%"); });

            ////a.FileMatch = new Predicate<FileInfo>(delegate(FileInfo fi)
            ////    {
            ////        return true;
            ////    });

            //a.Package();
            //a.Dispose();

            FmqProject Proj = new FmqProject();

            Proj.Name    = "test";
            Proj.Version = 1.0f;

            List <FIPFAPI.Cases.FmqProject.ProjectFile> files = new List <FIPFAPI.Cases.FmqProject.ProjectFile>();

            DoAnalyze(AppDomain.CurrentDomain.BaseDirectory, AppDomain.CurrentDomain.BaseDirectory, files);


            FIPFAPI.Cases.FmqProject.Module module = new FmqProject.Module();
            module.Name    = "default";
            module.Version = 1.2f;
            module.Files   = files;

            FIPFAPI.Cases.FmqProject.ModuleGroup group = new FmqProject.ModuleGroup();
            group.Name    = "defult group";
            group.Version = 1.0f;

            group.Modules     = new FmqProject.Module[] { module };
            Proj.ModuleGroups = new FmqProject.ModuleGroup[] { group };

            //Proj.Files = files;
            SerializeHelper.GetXmlDoc(Proj).Save("test.fproj");

            Console.WriteLine("OK, Project build finished..");
        }
Ejemplo n.º 2
0
 public void GetHeadProject()
 {
     FmqProject proj = new FmqProject();
 }