private static void TryRun(CommandLineOptions options) { var errorOccus = false; try { RunImpl(options); } catch (Exception e) { LoggedConsole.WriteError(e); errorOccus = true; } finally { VSProject.UnloadAll(); } LoggedConsole.WriteInfo(errorOccus ? "Error occurred..." : "Done!"); }
private static void Run(CommandLineOptions options) { RunImpl(options); VSProject.UnloadAll(); }