You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I understand, expressions $psversiontable.psversion -gt "3.0" were fixed.
But the similar expressions $psversiontable.psversion -gt ([version]"3.0") do not work:
Could not compare "6.0.0-beta" to "3.0". Error: "Cannot convert value "3.0" to type
"System.Management.Automation.SemanticVersion". Error: "Cannot process argument because the value of argument
"version" is not valid. Change the value of the "version" argument and run the operation again.""
At line:1 char:1
+ $psversiontable.psversion -gt ([version]"3.0")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : ComparisonFailure
In other words, [SemanticVersion] comparison with [Version] constructed with just major+minor does not work.
Tried packages:
This issue might be related to #3696
As far as I understand, expressions
$psversiontable.psversion -gt "3.0"were fixed.But the similar expressions
$psversiontable.psversion -gt ([version]"3.0")do not work:In other words,
[SemanticVersion]comparison with[Version]constructed with just major+minor does not work.