static int Main(string[] args) { if (args.Length < 3) { ShowUsage(); return(1); } var rootDir = Path.GetFullPath(args[0]); if (string.IsNullOrEmpty(rootDir)) { ShowUsage(); return(1); } if (!Directory.Exists(rootDir)) { Console.WriteLine("Can't find directory: " + rootDir); return(1); } var referenceAssemblies = args.Skip(2).ToArray(); RazorVDomCompiler.CompileToFile(EnableLogging, rootDir, referenceAssemblies, "testviews.dll"); return(0); }
static int Main(string[] args) { if (args.Length < 4) { ShowUsage(); return(1); } var rootDir = Path.GetFullPath(args[0]); if (string.IsNullOrEmpty(rootDir)) { ShowUsage(); return(1); } if (!Directory.Exists(rootDir)) { Console.WriteLine("Can't find directory: " + rootDir); return(1); } var applicationAssembly = args[2]; var outputFilename = args[3]; RazorVDomCompiler.CompileToFile(EnableLogging, rootDir, new[] { applicationAssembly }, outputFilename); return(0); }