1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

C#: Save copy of sln and csproj before applying fixes

(cherry picked from commit 93d7ec8836)
This commit is contained in:
Ignacio Etcheverry
2020-04-22 14:39:42 +02:00
committed by Rémi Verschelde
parent a5bbd13794
commit 08f41f474b
5 changed files with 77 additions and 44 deletions

View File

@@ -153,7 +153,12 @@ EndProject";
var result = regex.Replace(input,m => dict[m.Value]);
if (result != input)
{
// Save a copy of the solution before replacing it
FileUtils.SaveBackupCopy(slnPath);
File.WriteAllText(slnPath, result);
}
}
}
}