I think I got this fixed, but would recommend backing up your project before you try.
I removed GIT from my project. And went to the project files in file exlorer. I then deleted the following folders:
“Saved”
“Binaries”
“Intermediates”
“Source”
“vs”
“Derived Data Cache”
project’s .sln file
I think reopened the project. Which by doing so recreated a lot of the folders. I then added a “dummy” C++ class. In editor - fil-> new C++ class → type “none” → just name it “test”
this recreates your source folder. I then needed to open the .sln folder with visual basis 2022. And build with a shipping configiruation.
this solved it for me.
But again, I would recommend backing up first in case you delete something intergral to your project.