Example #1
0
        public bool AOTCompileProgram(ProgramInformation program)
        {
            bool ok = true;

            lock (this)
            {
                if (!program.IsRunning)
                {
                    foreach (var file in program.DllFiles)
                    {
                        if (!AOTHelper.Compile(System.IO.Path.Combine(program.Path, file)))
                        {
                            ok = false;
                            break;
                        }
                    }
                    ok = AOTHelper.Compile(program.ExeFile);
                }
                else
                {
                    ok = false;
                }
            }
            return(ok);
        }
Example #2
0
        static bool AOTCompileAndShowDialog(string programFolder)
        {
            List <IStep> steps = new List <IStep> ();

            foreach (string file in Directory.EnumerateFiles(programFolder, "*.*").Where(s => s.EndsWith(".exe") || s.EndsWith(".dll")))
            {
                steps.Add(new StepContainer(delegate() {
                    return(AOTHelper.Compile(file));
                }, new FileInfo(file).Name, "Failed to compile"));
            }
            var dialog = new StepDialog("Compiling", steps);

            return(dialog.Show());
        }