@@ -199,9 +199,6 @@ if ($PinnedBuild -eq "") {
199
199
}
200
200
}
201
201
202
- # Store the revision zero variant of the Windows SDK version (no-op if unspecified)
203
- $WindowsSDKMajorMinorBuildMatch = [Regex ]::Match($WinSDKVersion , " ^\d+\.\d+\.\d+" )
204
- $WinSDKVersionRevisionZero = if ($WindowsSDKMajorMinorBuildMatch.Success ) { $WindowsSDKMajorMinorBuildMatch.Value + " .0" } else { " " }
205
202
$CustomWinSDKRoot = $null # Overwritten if we download a Windows SDK from nuget
206
203
207
204
$vswhere = " ${env: ProgramFiles(x86)} \Microsoft Visual Studio\Installer\vswhere.exe"
@@ -661,7 +658,7 @@ function Invoke-VsDevShell($Arch) {
661
658
if ($CustomWinSDKRoot ) {
662
659
$DevCmdArguments += " -winsdk=none"
663
660
} elseif ($WinSDKVersion ) {
664
- $DevCmdArguments += " -winsdk=$WinSDKVersionRevisionZero "
661
+ $DevCmdArguments += " -winsdk=$WinSDKVersion "
665
662
}
666
663
667
664
if ($ToBatch ) {
@@ -673,22 +670,22 @@ function Invoke-VsDevShell($Arch) {
673
670
674
671
if ($CustomWinSDKRoot ) {
675
672
# Using a non-installed Windows SDK. Setup environment variables manually.
676
- $WinSDKVerIncludeRoot = " $CustomWinSDKRoot \include\$WinSDKVersionRevisionZero "
673
+ $WinSDKVerIncludeRoot = " $CustomWinSDKRoot \include\$WinSDKVersion "
677
674
$WinSDKIncludePath = " $WinSDKVerIncludeRoot \ucrt;$WinSDKVerIncludeRoot \um;$WinSDKVerIncludeRoot \shared;$WinSDKVerIncludeRoot \winrt;$WinSDKVerIncludeRoot \cppwinrt"
678
- $WinSDKVerLibRoot = " $CustomWinSDKRoot \lib\$WinSDKVersionRevisionZero "
675
+ $WinSDKVerLibRoot = " $CustomWinSDKRoot \lib\$WinSDKVersion "
679
676
680
- $env: WindowsLibPath = " $CustomWinSDKRoot \UnionMetadata\$WinSDKVersionRevisionZero ;$CustomWinSDKRoot \References\$WinSDKVersionRevisionZero "
677
+ $env: WindowsLibPath = " $CustomWinSDKRoot \UnionMetadata\$WinSDKVersion ;$CustomWinSDKRoot \References\$WinSDKVersion "
681
678
$env: WindowsSdkBinPath = " $CustomWinSDKRoot \bin"
682
- $env: WindowsSDKLibVersion = " $WinSDKVersionRevisionZero \"
683
- $env: WindowsSdkVerBinPath = " $CustomWinSDKRoot \bin\$WinSDKVersionRevisionZero "
684
- $env: WindowsSDKVersion = " $WinSDKVersionRevisionZero \"
679
+ $env: WindowsSDKLibVersion = " $WinSDKVersion \"
680
+ $env: WindowsSdkVerBinPath = " $CustomWinSDKRoot \bin\$WinSDKVersion "
681
+ $env: WindowsSDKVersion = " $WinSDKVersion \"
685
682
686
683
$env: EXTERNAL_INCLUDE += " ;$WinSDKIncludePath "
687
684
$env: INCLUDE += " ;$WinSDKIncludePath "
688
685
$env: LIB += " ;$WinSDKVerLibRoot \ucrt\$ ( $Arch.ShortName ) ;$WinSDKVerLibRoot \um\$ ( $Arch.ShortName ) "
689
686
$env: LIBPATH += " ;$env: WindowsLibPath "
690
687
$env: PATH += " ;$env: WindowsSdkVerBinPath \$ ( $Arch.ShortName ) ;$env: WindowsSdkBinPath \$ ( $Arch.ShortName ) "
691
- $env: UCRTVersion = $WinSDKVersionRevisionZero
688
+ $env: UCRTVersion = $WinSDKVersion
692
689
$env: UniversalCRTSdkDir = $CustomWinSDKRoot
693
690
}
694
691
}
@@ -913,7 +910,7 @@ function Fetch-Dependencies {
913
910
914
911
foreach ($Arch in $WinSDKArchs ) {
915
912
Invoke-Program nuget install $Package .$ ($Arch.ShortName ) - Version $WinSDKVersion - OutputDirectory $NugetRoot
916
- Copy-Directory " $NugetRoot \$Package .$ ( $Arch.ShortName ) .$WinSDKVersion \c\*" " $CustomWinSDKRoot \lib\$WinSDKVersionRevisionZero "
913
+ Copy-Directory " $NugetRoot \$Package .$ ( $Arch.ShortName ) .$WinSDKVersion \c\*" " $CustomWinSDKRoot \lib\$WinSDKVersion "
917
914
}
918
915
}
919
916
}
0 commit comments