This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ( | |
[Parameter(Position=0)] | |
$Tasks | |
#... other params | |
) | |
function IsVersionCompatible($requiredVersion, $testVersion) { | |
# same major, and AT LEAST the required minor and build | |
$testVersion.Major -eq $requiredVersion.Major ` | |
-and $testVersion.Minor -ge $requiredVersion.Minor ` |
OlderNewer