From c09d0505db3e581234195f606eaef57c435dd6eb Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Wed, 12 Nov 2025 14:36:54 -1000 Subject: [PATCH] Visual Studio Projects: Fetch windows-build before reporting update needed The value in _X_REQUIRED_WINDOWS_BUILD normally forces a fetch of the latest windows_build components that are available. This value might not be updated before the local system's Visual Studio tool chain is updated. When this Visual Studio is a version that isn't supported by the locally available windows_build, it is worth checking to see if windows_build has already been updated to support the newest Visual Studio version. --- Visual Studio Projects/Pre-Build-Event.cmd | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Visual Studio Projects/Pre-Build-Event.cmd b/Visual Studio Projects/Pre-Build-Event.cmd index 3882d686..c820d7da 100644 --- a/Visual Studio Projects/Pre-Build-Event.cmd +++ b/Visual Studio Projects/Pre-Build-Event.cmd @@ -38,7 +38,7 @@ set _ARG= rem Everything implicitly requires BUILD to also be set to have rem any meaning, it always gets set. set _X_BUILD=BUILD -set _X_REQUIRED_WINDOWS_BUILD=20250613 +set _X_REQUIRED_WINDOWS_BUILD=20251112 call :FindVCVersion _VC_VER _MSVC_VER _MSVC_TOOLSET_VER _MSVC_TOOLSET_DIR echo _VC_VER=%_VC_VER% echo _MSVC_VER=%_MSVC_VER% @@ -328,6 +328,14 @@ echo ***************************************************** set _exit_reason=Can't rename ../../windows-build-windows-build to ../../windows-build goto _ProjectInfo :_notice4 +if not "%_TRIED_PULL%" == "" goto _do_notice4 +if not exist ..\..\windows-build\.git goto _do_notice4 +pushd ..\..\windows-build +"%_GIT_GIT%" pull https://github.com/simh/windows-build +popd +set _TRIED_PULL=1 +goto _check_build +:_do_notice4 echo ********************************* echo ********************************* echo ** Visual Studio Version: %_VC_VER% Compiler Version: %_MSVC_VER% Toolset Version: %_MSVC_TOOLSET_VER% **