Added /rewrite and /restore keys to be able to restore original csproj state after build finished or failed.