Skip to content

Commit d6ce2cb

Browse files
authored
Merge 44603e2 into 1ec32b9
2 parents 1ec32b9 + 44603e2 commit d6ce2cb

2 files changed

Lines changed: 14 additions & 16 deletions

File tree

CefSharp.props

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,13 @@
22
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33

44
<PropertyGroup>
5-
<VisualStudioProductVersion>2019</VisualStudioProductVersion>
6-
<VisualStudioProductVersion Condition="'$(VisualStudioVersion)'=='17.0' AND Exists('$(SolutionDir)packages\$(CefSdkVer)\CEF\$(Platform)\$(Configuration)\VS2022\libcef_dll_wrapper.lib')">2022</VisualStudioProductVersion>
5+
<VisualStudioProductVersion>2022</VisualStudioProductVersion>
6+
<VisualStudioProductVersion Condition="'$(VisualStudioVersion)'=='18.0' AND Exists('$(SolutionDir)packages\$(CefSdkVer)\CEF\$(Platform)\$(Configuration)\VS2026\libcef_dll_wrapper.lib')">2026</VisualStudioProductVersion>
77

8-
<PlatformToolset>v142</PlatformToolset>
9-
<PlatformToolset Condition="'$(VisualStudioVersion)'=='17.0'">v143</PlatformToolset>
8+
<PlatformToolset>v143</PlatformToolset>
9+
<PlatformToolset Condition="'$(VisualStudioVersion)'=='18.0'">v145</PlatformToolset>
1010

11-
<!-- TODO: We might need to do something here when VS2019 and VS2022 are installed -->
1211
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
13-
<!-- <WindowsTargetPlatformVersion Condition="'$(VisualStudioVersion)'=='16.0'">10.0</WindowsTargetPlatformVersion> -->
14-
<!-- <WindowsTargetPlatformVersion Condition="'$(VisualStudioVersion)'=='17.0'">10.0</WindowsTargetPlatformVersion> -->
1512
</PropertyGroup>
1613

1714
</Project>

build.ps1

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

33
param(
4-
[ValidateSet("vs2022","vs2019", "nupkg-only", "update-build-version")]
4+
[ValidateSet("vs2022","vs2026", "nupkg-only", "update-build-version")]
55
[Parameter(Position = 0)]
66
[string] $Target = "vs2022",
77
[Parameter(Position = 1)]
@@ -80,7 +80,7 @@ function Warn
8080
function BuildSolution
8181
{
8282
param(
83-
[ValidateSet('v142','v143')]
83+
[ValidateSet('v145','v143')]
8484
[Parameter(Position = 0, ValueFromPipeline = $true)]
8585
[string] $Toolchain,
8686

@@ -153,7 +153,7 @@ function BuildSolution
153153
function VSX
154154
{
155155
param(
156-
[ValidateSet('v142','v143')]
156+
[ValidateSet('v143','v145')]
157157
[Parameter(Position = 0, ValueFromPipeline = $true)]
158158
[string] $Toolchain
159159
)
@@ -168,10 +168,11 @@ function VSX
168168

169169
switch -Exact ($Toolchain)
170170
{
171-
'v142'
171+
'v145'
172172
{
173-
$VS_VER = 16;
174-
$VS_OFFICIAL_VER = 2019;
173+
$VS_VER = 18;
174+
$VS_OFFICIAL_VER = 2026;
175+
$VS_PRE = "-prerelease";
175176
}
176177
'v143'
177178
{
@@ -537,7 +538,7 @@ if(-not (Test-Path $VSWherePath))
537538
$VSWherePath = Join-Path ${env:ProgramFiles(x86)} 'Microsoft Visual Studio\Installer\vswhere.exe'
538539
}
539540

540-
#Check if we already have vswhere which is included in newer versions of VS2017/VS2019
541+
#Check if we already have vswhere which is included in newer versions of VS2022
541542
if(-not (Test-Path $VSWherePath))
542543
{
543544
Write-Diagnostic "Downloading VSWhere as no install found at $VSWherePath"
@@ -577,9 +578,9 @@ switch -Exact ($Target)
577578
{
578579
Nupkg $NupkgFiles
579580
}
580-
"vs2019"
581+
"vs2026"
581582
{
582-
VSX v142
583+
VSX v145
583584
Nupkg $NupkgFiles
584585
}
585586
"vs2022"

0 commit comments

Comments
 (0)