SLN is generated with no folders

I’ve been working on a project for a while, and suddenly after adding a few more C++ files, when I run generate project files, my SLN is generated with no folders. My game compiles and runs fine, as normal.
I’m using 4.18.3 using the Epic Games Launcher, and Visual Studio Community 2017.

I’ve tried deleting the SLN and re-generating. Still produces the same problem.

Can anyone suggest how to debug this?

OK I “solved” this by deleting everything that’s generated in my project directory. I deleted the following and it fixed the problem:

  • .vs
  • Binaries
  • Debug
  • Intermediate
  • Saved
  • ProjectName.sln
  • ProjectName.VC.db

Glad you figured it out: when all else fails, delete those folders/files. When things go horribly wrong, it’s the next-to-last resort (the last resort is fully removing and reinstalling UE4).

But it’s usually OK to leave .vs and .db. That way you don’t loose your solution settings and VS won’t have to spend an hour rebuilding the database.

Don’t forget to choose your answer to mark the question as solved.