Hi
I’m having a similar issue with Windows packaging requiring Visual Studio 2022, but I’m not trying to build the engine from source, I’m using the standard engine from the Epic Launcher.
I posted my question before finding your post. You can see that original post here (my apologies to the community for my messy posting).
I can find the VCEnvironment.cs file but I can find the exact section you refer to. I can see several places where there are references to VisualStudio2022, but I’m not confident about what I should do.
Helpful suggestions welcome (Might v2026 work without issues? Will I have to tinker with VCEnvironment.cs?)
I did think that I should backtrack from the very new UE5.7 and try UE5.6 instead. But I suspect I will have the same issue requiring Visual Studio 2022 and not be able to get it. Perhaps I need to wait for UE5.7.1 …
(For info: I will only ever be using Blueprints, not C++)