public void BackupProject() { string backupPath = @"E:\Backup"; if (!Directory.Exists(backupPath)) { return; } Residence rs = new Residence(backupPath); rs.SaveVSSolution(@"C:\Programs\Standard\TinaValidator", false); rs.SaveVSSolution(@"C:\Programs\Standard\Aritiafel", false); TestContext.WriteLine("Save Successed."); }
public static void SaveProject(string subFolderName, string projectName, string backupDrive = DefaultBackupDrive) { Residence rs = new Residence($"{backupDrive}:\\Backup"); rs.SaveVSSolution($@"C:\Programs\{subFolderName}\{projectName}", true, new string[] { "Data" }); }
public static void SaveProject(ProjectChoice pc = ProjectChoice.Aritiafel, string backupDrive = DefaultBackupDrive) { Residence rs = new Residence($"{backupDrive}:\\Backup"); rs.SaveVSSolution(ProjectFolderPath[pc], true, new string[] { "Data" }); }