New Unreal5 project Build failed error on New C++ Class

Trying to create a new C++ Class but I’m getting a “Build failed” in the Live Coding popup
window immediately after executing Create Class.

My procedure is as follows with a new project:
Tools > New C++ Class > All Classes > BlueprintFunctionLibrary > Next > (Name change) > Create Class

Visual Studio 2019 opens and I’m presented with the Live Coding popup windows with a “Build failed” at the bottom with errors including:
error C2653: ‘UBPFL_FileIO’: is not a class or namespace name
error C2039: ‘GameContentDir’ : is not a member of ‘FPaths’

The same procedure in Unreal 4.27 has a similar result.

Am I missing some setting or something?

What happens if you:

  1. Tools > Generate (or Refresh) Visual Studio Project

  2. Close Unreal Editor

  3. Open .sln file in Visual Studio

  4. Click Build

What does the build output say?

1 Like

Getting same problem, any solutions?

Thanks for the replies. I rebuilt the project and it seemed to have worked.

Hey i am getting the same error when trying to build my old 4.22 project as a ue5 project. What did you do to fix this?