Unreal engine 5.1.0 Failed to generate project files.

hi, im new to UE and i’m having this problem where it’s impossible to generate project files for c++ classes, i tried reinstalling both UE and Visual Studio but did not help, i also tried the fixes i found on this forum regarding this error but still no fix, can someone tell me what’s wrong? Thanks
error:

"Successfully added class ‘MyActor’, however you must recompile the ‘Name_of_project’ module before it will appear in the Content Browser. Failed to generate project files.

Would you like to open the Output Log to see more details?

this is what the log says after what i already wrote up:
“LogSlate: Window ‘Add C++ Class’ being destroyed”"

1 Like

The engine is just saying that it’s prepared the new c++ but hasn’t generated the needed files for it to function in engine (.generated)

You don’t have to be alarmed about this message. Just run your project solution (visual studio .sln file in you project folder) and build your project (make sure your game project is set as the startup project).

After the compilation is complete and the engine launches your project, your c++ should now be fully up and running & accessible from the engine.

What if I don’t have a .sln file?:slight_smile: First time I have this issue, I don’t really want to start from scratch.

You can generate a solution file by right clicking you .uproject file (one with blue unreal icon) & chose Generate Visual studio project files.

1 Like

If anyone has a problem with generating the sln files - rebuilding a project, this is probably going to only affect 5.3. The error message points out that if u are using Visual Studio 2019 then it does not support UE 5.3 project files. After updating to Visual Studio 2022 (And making sure i checked the right components for 5.3 like * .NET 4.6.2 Targeting Pack

  • .NET 6.0) it allowed me to generate the sln file and rebuild my project without problems. Moral of the story: Read the ■■■■■■■ release notes because it clearly says you have to have a visual studio 2022 or later version. don’t be dumb like me. Unreal Engine 5.3 Release Notes | Unreal Engine 5.3 Documentation