diff --git a/make.ps1 b/make.ps1 index a8d6e93..f76bc24 100644 --- a/make.ps1 +++ b/make.ps1 @@ -308,7 +308,9 @@ if ($command -eq "all" -or $command -eq "clean") $currentEngine = "" if (Test-Path $versionFile) { - $currentEngine = [System.IO.File]::OpenText($versionFile).ReadLine() + $reader = [System.IO.File]::OpenText($versionFile) + $currentEngine = $reader.ReadLine() + $reader.Close() } if ($currentEngine -ne "" -and $currentEngine -eq $env:ENGINE_VERSION)