Skip to content

Commit

Permalink
Fixed a string comparison (#4983)
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisNikulin5 authored Sep 9, 2024
1 parent 5f97177 commit e738e1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .vsts.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ extends:
## Verify target framework for specified version
$majorVersion = $agentVersion.Split('.')[0]
if ((${{ parameters.targetFramework }} -eq "net6.0" -and $majorVersion -ne "3") -or
(${{ parameters.targetFramework }} -eq "net8.0" -and $majorVersion -ne "4")) {
if (("${{ parameters.targetFramework }}" -eq "net6.0" -and $majorVersion -ne "3") -or
("${{ parameters.targetFramework }}" -eq "net8.0" -and $majorVersion -ne "4")) {
Write-Error "The major version should be 3 for net6.0 and 4 for net8.0" -ErrorAction Stop
}
}
Expand Down

0 comments on commit e738e1d

Please sign in to comment.