|
1 | 1 | #requires -Version 5 |
2 | 2 |
|
3 | 3 | param( |
4 | | - [ValidateSet("vs2019", "vs2021", "nupkg", "nupkg-only")] |
| 4 | + [ValidateSet("vs2019", "vs2022", "nupkg", "nupkg-only")] |
5 | 5 | [Parameter(Position = 0)] |
6 | 6 | [string] $Target = "nupkg", |
7 | 7 |
|
@@ -136,7 +136,7 @@ function DownloadDependencies() |
136 | 136 | $global:VSWherePath = Join-Path ${env:ProgramFiles(x86)} 'Microsoft Visual Studio\Installer\vswhere.exe' |
137 | 137 | } |
138 | 138 |
|
139 | | - #Check if we already have vswhere which is included in newer versions of VS2019/VS2021 |
| 139 | + #Check if we already have vswhere which is included in newer versions of VS2019/VS2022 |
140 | 140 | if(-not (Test-Path $global:VSwherePath)) |
141 | 141 | { |
142 | 142 | Write-Diagnostic "Downloading VSWhere as no install found at $global:VSwherePath" |
@@ -203,10 +203,10 @@ function Bootstrap |
203 | 203 | mkdir "cef\$arch" | Out-Null |
204 | 204 | mkdir "cef\$arch\debug" | Out-Null |
205 | 205 | mkdir "cef\$arch\debug\VS2019" | Out-Null |
206 | | - mkdir "cef\$arch\debug\VS2021" | Out-Null |
| 206 | + mkdir "cef\$arch\debug\VS2022" | Out-Null |
207 | 207 | mkdir "cef\$arch\release" | Out-Null |
208 | 208 | mkdir "cef\$arch\release\VS2019" | Out-Null |
209 | | - mkdir "cef\$arch\release\VS2021" | Out-Null |
| 209 | + mkdir "cef\$arch\release\VS2022" | Out-Null |
210 | 210 | } |
211 | 211 |
|
212 | 212 | function Msvs |
@@ -403,7 +403,7 @@ function CreateCefSdk |
403 | 403 |
|
404 | 404 | if($Toolchain -eq "v143") |
405 | 405 | { |
406 | | - $VisualStudioVersion = "VS2021" |
| 406 | + $VisualStudioVersion = "VS2022" |
407 | 407 | } |
408 | 408 |
|
409 | 409 | $CefArchDir = $Platform.Folder |
|
742 | 742 | { |
743 | 743 | VSX v142 $platform |
744 | 744 | } |
745 | | - "vs2021" |
| 745 | + "vs2022" |
746 | 746 | { |
747 | 747 | VSX v143 $platform |
748 | 748 | } |
|
0 commit comments