1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

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

This commit is contained in:
Ignacio Etcheverry
2020-04-22 14:39:42 +02:00
parent bb9d89d78c
commit 93d7ec8836
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);
}
}
}
}