Whenever I have to move files or reorganize the directory structure, I delete the “.vs”, “Binaries”, “DerivedDataCache”, “Intermediate”, and “Saved” directories within my unreal project directory and THEN run “Generate Visual Studio Project Files” on the .uproject file.
Also, you’ll need to update the #include statements for any files that are reliant on your moved source files.
Failing to do either of these steps can result in errors.
If this doesn’t help, post the text of the errors you’re getting and we may be able to offer more help.