/// <summary> /// Program entry point /// </summary> /// <param name="args">Arguments passed to the program</param> public static void Main(String[] args) { Console.WriteLine("SharpCli started"); // Get SharpCli to patch all SharpDX DLLs to implement generated functions InteropApp interopApp = new InteropApp(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)); interopApp.PatchAll(); }
/// <summary> /// Main of this program. /// </summary> /// <param name="args">The args.</param> static void Main(string[] args) { try { if (args.Length != 1) { Console.WriteLine("{0} file_path is expecting one file argument", Assembly.GetExecutingAssembly().GetName().Name); Environment.Exit(1); } string file = args[0]; var program = new InteropApp(); program.PatchFile(file); } catch (Exception ex) { Console.WriteLine(ex); Environment.Exit(1); } }