public static void Main(string[] args) { if (args.Length < 2) { System.Console.WriteLine("Usage: "); System.Console.WriteLine("metadatagen <sourcepath> <output>"); return; } string sourcePath = args[0]; AssemblyLoader.Initialize(sourcePath, Log); ExtensionsMetadataGenerator.Generate(sourcePath, args[1], Log); }
public static void Main(string[] args) { try { if (args.Length < 2) { System.Console.WriteLine("Usage: "); System.Console.WriteLine("metadatagen <sourcepath> <output>"); return; } string sourcePath = args[0]; AssemblyLoader.Initialize(sourcePath, Log); ExtensionsMetadataGenerator.Generate(sourcePath, args[1], Log); } catch (Exception ex) { Log("Error generating extension metadata: " + ex.ToString()); throw; } }
public static void Main(string[] args) { if (args.Length < 2) { System.Console.WriteLine("Usage: "); System.Console.WriteLine("metadatagen <sourcepath> <output>"); return; } ConsoleLogger logger = new ConsoleLogger(); string sourcePath = args[0]; try { ExtensionsMetadataGenerator.Generate(sourcePath, args[1], logger); } catch (Exception ex) { logger.LogError("Error generating extension metadata: " + ex.ToString()); throw; } }