Skip to content

Commit 51c031c

Browse files
committed
build.ps1 - Change to VS2022 (was previously VS2021)
1 parent dfe3745 commit 51c031c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

build.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#requires -Version 5
22

33
param(
4-
[ValidateSet("vs2019", "vs2021", "nupkg", "nupkg-only")]
4+
[ValidateSet("vs2019", "vs2022", "nupkg", "nupkg-only")]
55
[Parameter(Position = 0)]
66
[string] $Target = "nupkg",
77

@@ -136,7 +136,7 @@ function DownloadDependencies()
136136
$global:VSWherePath = Join-Path ${env:ProgramFiles(x86)} 'Microsoft Visual Studio\Installer\vswhere.exe'
137137
}
138138

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
140140
if(-not (Test-Path $global:VSwherePath))
141141
{
142142
Write-Diagnostic "Downloading VSWhere as no install found at $global:VSwherePath"
@@ -203,10 +203,10 @@ function Bootstrap
203203
mkdir "cef\$arch" | Out-Null
204204
mkdir "cef\$arch\debug" | Out-Null
205205
mkdir "cef\$arch\debug\VS2019" | Out-Null
206-
mkdir "cef\$arch\debug\VS2021" | Out-Null
206+
mkdir "cef\$arch\debug\VS2022" | Out-Null
207207
mkdir "cef\$arch\release" | Out-Null
208208
mkdir "cef\$arch\release\VS2019" | Out-Null
209-
mkdir "cef\$arch\release\VS2021" | Out-Null
209+
mkdir "cef\$arch\release\VS2022" | Out-Null
210210
}
211211

212212
function Msvs
@@ -403,7 +403,7 @@ function CreateCefSdk
403403

404404
if($Toolchain -eq "v143")
405405
{
406-
$VisualStudioVersion = "VS2021"
406+
$VisualStudioVersion = "VS2022"
407407
}
408408

409409
$CefArchDir = $Platform.Folder
@@ -742,7 +742,7 @@ try
742742
{
743743
VSX v142 $platform
744744
}
745-
"vs2021"
745+
"vs2022"
746746
{
747747
VSX v143 $platform
748748
}

0 commit comments

Comments
 (0)