Build UE4 from source using Visual Studio 2022

Hi all. I am trying to build a dedicated multiplayer server for my game which requires building UE4 from source. I am using Visual Studio 2022 which works fine for developing C++ Unreal projects but is not recognized as a valid build toolchain for building from source.

The main problem seems to be in the GetMSBuildPath.bat script that doesn’t seem recognize VS2022.

Has anyone got VS2022 working for building UE4 from source? Do I really need to downgrade to VS2019 to make it work?

I’m just surprised that there’s no info on this out there, any help here is much appreciated!