Visual Studio not recognizing UE4?

I installed UE4, ran the setup, and ran the generate project files batch, but when I open it, it looks like this


saying that UE4 is incompatible because it is not installed. Can’t Find any answers on the web. I am trying to work with UnrealBuildTool if that helps. Thanks.

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 :frowning:

7 Likes

I only have 2017 installed as its the only thing that works for the project I’m trying to make. This is the tutorial I’m following if it helps. Sorry I can’t be more helpful, I’m brand new to the program.

Never mind, I was missing one of the necessary plugins. Sorry about that.

What plugin was that? Ran on the same problem

Heya, I know its an old post but, for anyone in the future:

First: follow the setup on this page:

Second, if you have more than one IDE, Like VS 2022 and VS 2019 (In my case) Make sure you have generated your VS project files with the VS your trying to use,
How I did it is I went into Unreal,
Went into preferences, then into the source code tab,
Set your source code editor to the corresponding IDE then click on the Tools tab at the top of unreal and generate visual studio files, then you can open your VS project and everything should be good.

2 Likes

Thx

I haven’t tried it yet, but this page says you can add a -2019 command line parameter to GenerateProjectFiles.bat to force it to build with VS 2019: