Missing Include Files

Edit: It’s not just this migrated project, but actually every project of mine that is on 5.4 has this problem. 5.3 works just fine though.

Hi everyone,

I’ve recently migrated an Unreal Engine project, and while the project itself works fine, I’m encountering a frustrating issue when trying to open any of the Unreal Engine built-in source code files in Visual Studio. I’m getting thousands of errors like this:

This problem is affecting all other includes as well. My project is a migration from another project, and I copied over the config files and other related settings. However, it seems like there might be a mistake somewhere in the process.

Here’s what I’ve tried so far:

  • Rebuilding the solution and regenerating Visual Studio project files.
  • Deleting the Intermediate, Saved, and Binaries folders and regenerating the project files.
  • Verifying the include directories and engine paths in Visual Studio.
  • Comparing .Build.cs and .Target.cs files with a working project.

None of these steps have resolved the issue. Has anyone experienced something similar, or does anyone have any suggestions on how to fix this?

Did you ensure that anything you copied over does not have OLDPROJECTNAME_API in any of your classes? Also in the .uproject and other config files you should check if it is referencing the old project name.

ive done some works and turn out that It’s not just this migrated project, but actually every project of mine that is on 5.4 has this problem. 5.3 works just fine though.

Have you updated your visual studio and packages in the Visual Studio Installer? I had to do that to get rid of some errors after upgrading to 5.4.