public static async Task ModifyFilesToFitMigration(string filePath, string owner) { ModifyDotNetVersion(filePath); UpdatePackageReference(filePath).Wait(); UpdateDockerFile(filePath); //Check in the file to a new repository GitMethods.CommitFileToRepository(owner, filePath, "MigratedConsoleApp"); }
public static async Task MigrateConsoleApp(string repo, string owner, string file_path) { var extractPath = GitMethods.CloneRepository(repo, owner, file_path).Result; ModifyFilesToFitMigration(extractPath.ToString(), owner).Wait(); }