Exemplo n.º 1
0
 void CleanUpOldFormatFiles(DotNetProject proj)
 {
     FileService.DeleteFile(proj.GetPackagesFilePath());
     // TODO: In F# there is no /Properties
     FileService.DeleteDirectory(proj.GetPropertiesDirPath());
     FileService.DeleteFile(proj.GetProjFilePath());
 }
Exemplo n.º 2
0
        public void BackupOldFormatFiles()
        {
            var backupFolderPath = $"{proj.BaseDirectory.FullPath.ParentDirectory}/mutatio_backup";

            // Create backup directory
            FileService.CreateDirectory(backupFolderPath);
            // Backup current .xproj
            var projFilePath = proj.GetProjFilePath();

            FileService.CopyFile(projFilePath, $"{backupFolderPath}/{proj.Name}.{proj.GetProjFileExtension()}");
            // Backup packages.config
            var packagesConfigFilePath = proj.GetPackagesJsonFilePath();

            FileService.CopyFile(packagesConfigFilePath, $"{backupFolderPath}/packages.config");

            // Backup AssemblyInfo.x
            FileService.CopyDirectory(proj.GetPropertiesDirPath(), $"{backupFolderPath}/Properties");
        }