diff --git a/aeqw89.tools.Publish/Program.cs b/aeqw89.tools.Publish/Program.cs index 6c7e040..7e00f73 100644 --- a/aeqw89.tools.Publish/Program.cs +++ b/aeqw89.tools.Publish/Program.cs @@ -124,6 +124,11 @@ public static class Program { try { projectFile.Backup(); + Console.CancelKeyPress += (sender, eventArgs) => { + projectFile.Restore(); + AnsiConsole.MarkupLine("[yellow]Restored project file from backup.[/]"); + }; + if (Verbose) AnsiConsole.WriteLine( $"Created project file backup at {projectFile.GetDefaultBackupLocation()}");