OK - It took 2 hours and then we ran into additional issues with compiling using newer build tools.
We found a better solution:
- Modify Visual Studio 2022
- Go to Individual Components
- Add
MSVC v143 - VS 2022 C++ x64/x86 build tools (v14.36-17.6)(we used to have this one installed, but it got uninstalled when VS 2022 updated) - Add an environment variable named
VCToolsVersionwith the value14.36.32532on the machine doing the builds
This will make the compiler use the correct tool chain.
This solution was good for us since we could specify the env variable on the Team City builds that compiled UE 5.3 and 5.2 projects.
You can check what versions of the tools you have installed by opening up the folder in Windows explorer and see what folders you have: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\