Error on startup "Could not be compiled. Try rebuilding from source manually"

I was following some stupid tutorial that mentioned to delete the .vs, backup, intermediate, saved and .sln files from the project to fix Visual Studio throwing unnecessary errors. This unfortunately ended up meaning that when trying to load the game I’m hit with a popup asking for me to rebuild the project and then afterwards says “Could not be compiled. Try rebuilding from source manually”. I’ve restored the old deleted files back into the project from recycling so it’s back to normal as it was previously yet it still doesn’t work for some reason.

Is there any way to fix this or did some idiot online just mess up my entire project?

Here’s the Visual Studio build errors, not sure if this is related but I’ll put it here incase it’s important