My project was a blueprints-only project and I added C++ to it. I generated the VS files by right clicking on .uproject and clicking “Generate Visual Studio project files”. The first time I opened and built my .sln file, it built successfully and I was able to launch the editor from VS. However, the next day, launching from the editor fails and I get the error:
Things I’ve tried:
- Delete Intermediate, Saved, DerivedDataCache, Binaries, .sln and generate files again
- Delete the same files as above but launching .uproject and then generating VS files again
- Restart computer
- Followed the steps in this
- Clean and Build
- Verify engine from epic games launcher
I hunted down the UnrealBuildTool.exe and tried running it from command prompt and it seemed to run okay. But trying to start the unreal editor from VS with and without debugging yields the above error.
I get build errors like CS0246 but not every time. Some of the errors are in UE files so I ignore those.
I’m using UE 5.5.1 and also have a version of 5.2 installed as well that I need for another project.