@@ -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"
@@ -670,7 +667,7 @@ function Invoke-VsDevShell($Arch) {
670
667
if ($CustomWinSDKRoot ) {
671
668
$DevCmdArguments += " -winsdk=none"
672
669
} elseif ($WinSDKVersion ) {
673
- $DevCmdArguments += " -winsdk=$WinSDKVersionRevisionZero "
670
+ $DevCmdArguments += " -winsdk=$WinSDKVersion "
674
671
}
675
672
676
673
if ($ToBatch ) {
@@ -682,22 +679,22 @@ function Invoke-VsDevShell($Arch) {
682
679
683
680
if ($CustomWinSDKRoot ) {
684
681
# Using a non-installed Windows SDK. Setup environment variables manually.
685
- $WinSDKVerIncludeRoot = " $CustomWinSDKRoot \include\$WinSDKVersionRevisionZero "
682
+ $WinSDKVerIncludeRoot = " $CustomWinSDKRoot \include\$WinSDKVersion "
686
683
$WinSDKIncludePath = " $WinSDKVerIncludeRoot \ucrt;$WinSDKVerIncludeRoot \um;$WinSDKVerIncludeRoot \shared;$WinSDKVerIncludeRoot \winrt;$WinSDKVerIncludeRoot \cppwinrt"
687
- $WinSDKVerLibRoot = " $CustomWinSDKRoot \lib\$WinSDKVersionRevisionZero "
684
+ $WinSDKVerLibRoot = " $CustomWinSDKRoot \lib\$WinSDKVersion "
688
685
689
- $env: WindowsLibPath = " $CustomWinSDKRoot \UnionMetadata\$WinSDKVersionRevisionZero ;$CustomWinSDKRoot \References\$WinSDKVersionRevisionZero "
686
+ $env: WindowsLibPath = " $CustomWinSDKRoot \UnionMetadata\$WinSDKVersion ;$CustomWinSDKRoot \References\$WinSDKVersion "
690
687
$env: WindowsSdkBinPath = " $CustomWinSDKRoot \bin"
691
- $env: WindowsSDKLibVersion = " $WinSDKVersionRevisionZero \"
692
- $env: WindowsSdkVerBinPath = " $CustomWinSDKRoot \bin\$WinSDKVersionRevisionZero "
693
- $env: WindowsSDKVersion = " $WinSDKVersionRevisionZero \"
688
+ $env: WindowsSDKLibVersion = " $WinSDKVersion \"
689
+ $env: WindowsSdkVerBinPath = " $CustomWinSDKRoot \bin\$WinSDKVersion "
690
+ $env: WindowsSDKVersion = " $WinSDKVersion \"
694
691
695
692
$env: EXTERNAL_INCLUDE += " ;$WinSDKIncludePath "
696
693
$env: INCLUDE += " ;$WinSDKIncludePath "
697
694
$env: LIB += " ;$WinSDKVerLibRoot \ucrt\$ ( $Arch.ShortName ) ;$WinSDKVerLibRoot \um\$ ( $Arch.ShortName ) "
698
695
$env: LIBPATH += " ;$env: WindowsLibPath "
699
696
$env: PATH += " ;$env: WindowsSdkVerBinPath \$ ( $Arch.ShortName ) ;$env: WindowsSdkBinPath \$ ( $Arch.ShortName ) "
700
- $env: UCRTVersion = $WinSDKVersionRevisionZero
697
+ $env: UCRTVersion = $WinSDKVersion
701
698
$env: UniversalCRTSdkDir = $CustomWinSDKRoot
702
699
}
703
700
}
@@ -922,7 +919,7 @@ function Fetch-Dependencies {
922
919
923
920
foreach ($Arch in $WinSDKArchs ) {
924
921
Invoke-Program nuget install $Package .$ ($Arch.ShortName ) - Version $WinSDKVersion - OutputDirectory $NugetRoot
925
- Copy-Directory " $NugetRoot \$Package .$ ( $Arch.ShortName ) .$WinSDKVersion \c\*" " $CustomWinSDKRoot \lib\$WinSDKVersionRevisionZero "
922
+ Copy-Directory " $NugetRoot \$Package .$ ( $Arch.ShortName ) .$WinSDKVersion \c\*" " $CustomWinSDKRoot \lib\$WinSDKVersion "
926
923
}
927
924
}
928
925
}
0 commit comments