diff options
Diffstat (limited to 'scripts/build-windows.ps1')
-rw-r--r-- | scripts/build-windows.ps1 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build-windows.ps1 b/scripts/build-windows.ps1 index ee0d67210..064eb026c 100644 --- a/scripts/build-windows.ps1 +++ b/scripts/build-windows.ps1 | |||
@@ -96,9 +96,9 @@ if ($env:CLEAN -eq "true") | |||
96 | # Ensure that the system dependencies are at the correct version - fail if not | 96 | # Ensure that the system dependencies are at the correct version - fail if not |
97 | # TODO: Needs proper way to check MSVS Tools | 97 | # TODO: Needs proper way to check MSVS Tools |
98 | # Check MSVS Tools through MSVS_VERSION | 98 | # Check MSVS Tools through MSVS_VERSION |
99 | $EXPECTED_MSVST_VERSION = "2015" | 99 | $EXPECTED_MSVST_VERSION = @("2019", "2022") |
100 | $ACTUAL_MSVST_VERSION = (npm config get msvs_version) | 100 | $ACTUAL_MSVST_VERSION = (npm config get msvs_version) |
101 | if ([double]$ACTUAL_MSVST_VERSION -ne [double]$EXPECTED_MSVST_VERSION) { | 101 | if (-not ($EXPECTED_MSVST_VERSION -contains $ACTUAL_MSVST_VERSION)) { |
102 | fail_with_docs "You are not running the expected version of MSVS Tools! | 102 | fail_with_docs "You are not running the expected version of MSVS Tools! |
103 | expected: [$EXPECTED_MSVST_VERSION] | 103 | expected: [$EXPECTED_MSVST_VERSION] |
104 | actual : [$ACTUAL_MSVST_VERSION]" | 104 | actual : [$ACTUAL_MSVST_VERSION]" |