Ejemplo n.º 1
0
        static int Main(string[] args)
        {
            try
            {
                var sce = new SelfCompilingExecutable(FS.GetExecutable());

                if (args.Length >= 1 && string.Equals(args[0], "watch"))
                {
                    sce.Watch();
                    return(0);
                }
                else
                {
                    return(sce.Run().Result);
                }
            }
            catch (Exception e)
            {
                Console.Error.WriteLine(e);
                return(-1);
            }
        }
Ejemplo n.º 2
0
 static string GetSourceDir()
 {
     return(FS.GetExecutable() + ".src");
 }