public static void Main(string [] args) { try { string assemblyName = args[0]; string outfile = args[1]; Assembly assembly = Assembly.LoadFrom(assemblyName); using (Stream stream = File.Create(outfile)) { DoapWriter writer = new DoapWriter(assembly); writer.WriteTo(stream); } } catch (Exception e) { Console.WriteLine(e); } }