示例#1
0
 public static int Main(string[] args)
 {
     if (args.Length == 0) {
         Console.WriteLine ("MonoDevelop Code Completion Database Generation Tool");
         Console.WriteLine ("Usage: dbgen <destDirectory> [<assemblyName> | <assemblyPath>]");
         return 0;
     }
     ServiceManager.AddService (new MonodocService());
     DefaultParserService parserService = new DefaultParserService ();
     parserService.GenerateAssemblyDatabase (args[0], args[1]);
     return 0;
 }
        public void GenerateDatabase(string baseDir, string assemblyName)
        {
            if (ServiceManager.GetService (typeof(MonodocService)) == null)
                ServiceManager.AddService (new MonodocService());

            DefaultParserService parserService = new DefaultParserService ();
            parserService.GenerateAssemblyDatabase (baseDir, assemblyName);
        }