/// <summary> /// Runs the engine using the specified rewriting options. /// </summary> public static void Run(Configuration configuration, RewritingOptions options) { if (string.IsNullOrEmpty(options.AssembliesDirectory)) { throw new Exception("Please provide RewritingOptions.AssembliesDirectory"); } if (string.IsNullOrEmpty(options.OutputDirectory)) { throw new Exception("Please provide RewritingOptions.OutputDirectory"); } if (options.AssemblyPaths is null || options.AssemblyPaths.Count is 0) { throw new Exception("Please provide RewritingOptions.AssemblyPaths"); } var engine = new RewritingEngine(configuration, options); engine.Run(); }