This commit is contained in:
Vladimir Safonkin
2021-02-04 13:41:45 +03:00
parent ac1baccba4
commit 1c7be1087d
2 changed files with 5 additions and 3 deletions

View File

@ -8,7 +8,7 @@ Write-Host "Found '$dotnet'"
$version = & $dotnet --version | Out-String | ForEach-Object { $_.Trim() }
Write-Host "Version $version"
if (-not ($version.StartsWith($args[0].ToString()))
if (-not ($version.StartsWith($args[0].ToString())))
{
Write-Host "PATH='$env:PATH'"
throw "Unexpected version"