From 64356eea1121dd2ba331e35d99624bb8d799aa00 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Thu, 24 Nov 2022 13:04:43 -1000 Subject: [PATCH] Visual Studio Projects: Allow VS2022 Professional and Enterprise to build XP --- build_vstudio.bat | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build_vstudio.bat b/build_vstudio.bat index 24324f76..4bd5d817 100644 --- a/build_vstudio.bat +++ b/build_vstudio.bat @@ -185,7 +185,10 @@ goto _NextProject :_DoMSBuild if "%_X_SLN_VERSION%" == "10.00" echo Converting the VS2008 projects to VS%_VC_VER%, this will take several (3-5) minutes & DevEnv /Upgrade "%_BUILD_PROJECT_DIR%Simh.sln" if not "%_VC_VER%" == "2022" goto _RunBuild -if not exist "%ProgramFiles%\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v150\Platforms\x64\PlatformToolsets\v141_xp" goto _RunBuild +if exist "%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v150\Platforms\x64\PlatformToolsets\v141_xp" goto _DoXPConvert +if exist "%ProgramFiles%\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v150\Platforms\x64\PlatformToolsets\v141_xp" goto _DoXPConvert +if exist "%ProgramFiles%\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v150\Platforms\x64\PlatformToolsets\v141_xp" goto _DoXPConvert +:_DoXPConvert for /F "usebackq tokens=1" %%a in (`findstr /C:"10.0" "%_BUILD_PROJECT_DIR%BuildROMs.vcxproj"`) do SET _X_PROJS_CONVERTED=%%a if not "%_X_PROJS_CONVERTED%" == "" goto _RunBuild echo Converting the VS2022 projects to generate XP compatible binaries