C++ Compile Error "Couldn't find target rules file for target"

If you don’t have a .sln file (yourproject.sln) then right click the uproject and choose ‘regenerate project files’ or something. It has ‘generate’ in there somewhere.