Unreal incompatible with Visual Studio 2017 15.5.2

I am using UE4 4.18 with Visual Studio 2017.

Until yesterday, it was working fine. I could open projects and compile without problems.

I wake up this morning and suddenly it isn’t working, and I receive this error:

When I click OK, my project looks like this:

243369-unreal2.png

I do note there was an update to Visual Studio overnight, since Visual Studio asked me to restart. The current version is 15.5.2.

The project migration report says:

I updated Visual Studio through control panel, but that hasn’t solved the problem.

Has anyone had this problem? Is there a fix? I don’t really want to have to update to UE 4.19 unless I really have to.

P.S. I have re-generated my visual studio solutions from the uproject file, which doesn’t help.

Well I ran the VS updater again and updated to 15.7.3, re-installed the UE4 installer, created a new C++ project and it seems to load OK into Visual Studio.

But I still can’t load the existing project, it just shows as incompatible still.

Having the very same issues here.

Happens for 4.19 and 4.18 for me on vs version 15.7.3

I did manage to get it working again, thought it seems a bit unreliable. I loaded my project through the launcher (instead of opening uproject from explorer), regenerated the solution, loaded into visual studio, the right clicked on the project and selected reload. Then it came up.

But if I load uproject from explorer or load the visual studio solution file directly, it breaks. This worked for one project, another one I couldn’t even load at all because it kept trying to recompile and failing on load so I couldn’t even open it.

I must’ve reinstalled visual studio 3 times, none of which worked.
Finally I tried this:

Seems this is rather a visual studio problem where some cache could get broken.

And then it worked after a reboot.

This is a pretty niche answer, but I will provide it here in case it helps anyone. I had both v140 (2015) and v141 (2017) build tools installed for Visual Studio. The reason was that I sometimes had to use v140 build tools for stuff such as setting up amazon gamelift. However, I wanted to continue building my Unreal projects using v141 so I deleted the v140 tools. What I forgot to do was delete the VCTargetsPath variable that I set to the location of the v140 tools in my environment variables.

270823-capture.png

After doing so, I had to do some other things such as re-generating the visual studio files as well as cleaning the project before building again. Note that you may still have to right-click the project files and select “Reload Project”.

What worked for me is, in “editor preferences”, under “General - source code” change the source code editor to what you want. after restarting the editor and closing again. you can generate solution via uproject file and open the solution with the right version.

for me, i have a 4.27 unreal project and it sais that it is incompatible with vs 2019. after doing what i descriped it is compatible again with vs 2019

2 Likes

More solution details in this thread: Visual Studio not recognizing UE4? - #2 by Kardall

This one worked like a charm, thanks man