Fixed issue where concurrent execution could result in invalid file

This commit is contained in:
Arlo Godfrey 2022-04-05 16:42:04 -05:00
Родитель 6f9c97e892
Коммит bb69ead830
1 изменённых файлов: 1 добавлений и 5 удалений

Просмотреть файл

@ -20,8 +20,4 @@ if ($newFileContents -eq $fileContents) {
return;
}
if (Test-Path '.\..\Labs.TargetFrameworks.props') {
Clear-Content -Path .\..\Labs.TargetFrameworks.props;
}
Add-Content -Force -Path .\..\Labs.TargetFrameworks.props -Value $newFileContents;
Set-Content -Force -Path .\..\Labs.TargetFrameworks.props -Value $newFileContents;