One thing to check as well is the 260 character limit - I have found the .sln file won’t build if it is deeply nested in subfolders (example: deep in OneDrive folder).
If you pull out the project and put it on the C drive, or at least a shorter file path, that sometimes fixes the issue.
Otherwise, check plugins are placed in the appropriate spots.