Ejemplo n.º 1
0
        /// <summary>
        /// Estrae Grit
        /// Ritorna il Path dell'eseguibile
        /// </summary>
        /// <returns></returns>
        private String ExtractGrit()
        {
            ResourcesService rs = new ResourcesService(System.Reflection.Assembly.GetExecutingAssembly());
            SystemService    ss = SM.Get <SystemService>();


            String TmpPath = ss.CombinePaths(Path.GetTempPath(), "grit");


            FilePlus fp       = rs.GetObject <FilePlus>("Template_Util.GRIT.grit.exe");
            String   GritPath = ss.CombinePaths(TmpPath, "grit.exe");

            fp.Folder    = TmpPath;
            fp.Name      = "grit";
            fp.Extension = ".exe";
            fp.Save();

            fp           = rs.GetObject <FilePlus>("Template_Util.GRIT.FreeImage.dll");
            fp.Folder    = TmpPath;
            fp.Name      = "FreeImage";
            fp.Extension = ".dll";
            fp.Save();

            fp           = rs.GetObject <FilePlus>("Template_Util.GRIT.licence-mit.txt");
            fp.Folder    = TmpPath;
            fp.Name      = "licence-mit";
            fp.Extension = ".txt";
            fp.Save();

            return(GritPath);
        }
Ejemplo n.º 2
0
 public void Test_CopyDirectorIgnore()
 {
     TLog($"_testSourceDir: {_testSourceDir}");
     TLog($"_testDestDir: {_testDestDir}");
     FilePlus.CopyDirectorIgnore(_testSourceDir, _testDestDir, "^*.meta$", true);
 }