internal static void Clean(string directory) { var scCleaner = new RemoveSourceControlBindings { ProcessDirectory = directory }; scCleaner.Execute(); }
internal static void CleanDirectory(this string directory) { // Remove standard directories directory.RemoveSubDirectories("bin", "obj", "TestResults", "_ReSharper*"); // Remove directories provided on command line also directory.RemoveSubDirectories(Program.Options.RemoveDirectories); directory.DeleteFiles("*.ReSharper*", "*.suo"); directory.DeleteFiles(Program.Options.RemoveFiles); if (Program.Options.RemoveSourceControl) { RemoveSourceControlBindings.Clean(directory); } }