I actually came to make a post about this and how I resolved it, errored while posting, but I will put it here.
So I am attempting to build UE 4.27.2-release tag from github, and I finally got it to work…
However, there seems to be some issue with this process now.
I have Visual Studio 2017, 2019 and 2022 installed on my machine for various projects, and it seems that VS 2022 is being used to generate the project files when you right-click a uproject file and tell it to generate the project files.
Even re-downloading the source from scratch for UE4, building it required me to edit the
\UnrealEngine\Engine\Intermediate\ProjectFiles\UE4.vcxproj
in two places. It was being generated as being the minimum version of 17.0, which is VS 2022, in two places.
Line 2: <Project DefaultTargets="Build" ToolsVersion="17.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
to
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
and then
Line 694: <MinimumVisualStudioVersion>17.0</MinimumVisualStudioVersion>
to
<MinimumVisualStudioVersion>15.0</MinimumVisualStudioVersion>
I had to edit this once again when I had to build my actual project. (Dedicated Server)
It re-created the UE4 vcproj file in the \<project>\Intermediate\ProjectFiles
folder, as well as the project’s sln file had to be edited the same way, then relaunch VS 2017 in order for it to be ‘compatible’.
Anyone figure out a way around this? 2022 is so much better 