Ejemplo n.º 1
0
        static void Main(String[] args)
        {
            var v = Assembly.GetExecutingAssembly().GetName().Version;

            Console.WriteLine($"BuildSQL Version: {v.Major}.{v.Minor}.{v.Build}");
            if (args.Length == 0)
            {
                Console.WriteLine("Usage: buildsql [appdir]");
                return;
            }

            String dir = args[0].ToLowerInvariant();

            Console.WriteLine($"Processing: {dir}");

            try
            {
                SqlFileBuilder fb = new SqlFileBuilder(dir);
                fb.Process();
            }
            catch (Exception ex)
            {
                Console.WriteLine($"Exception: {ex.Message}");
            }
            Console.WriteLine();
        }
Ejemplo n.º 2
0
        static void Main(String[] args)
        {
            if (args.Length == 0)
            {
                Console.WriteLine("Usage: buildsql [appdir]");
                return;
            }

            String dir = args[0].ToLowerInvariant();

            Console.WriteLine($"Processing: {dir}");

            try
            {
                SqlFileBuilder fb = new SqlFileBuilder(dir);
                fb.Process();
            }
            catch (Exception ex)
            {
                Console.WriteLine($"Exception: {ex.Message}");
            }
            Console.WriteLine();
        }