Fixed error when removing TFM props file that doesn't yet exist
This commit is contained in:
Родитель
2df29a54d6
Коммит
f7310f7812
|
@ -15,5 +15,8 @@ if ($newFileContents -eq $fileContents) {
|
|||
return;
|
||||
}
|
||||
|
||||
Clear-Content -Path .\..\Labs.TargetFrameworks.props;
|
||||
if (Test-Path '.\..\Labs.TargetFrameworks.props') {
|
||||
Clear-Content -Path .\..\Labs.TargetFrameworks.props;
|
||||
}
|
||||
|
||||
Add-Content -Force -Path .\..\Labs.TargetFrameworks.props -Value $newFileContents;
|
Загрузка…
Ссылка в новой задаче