I have recently ran into this same problem out of nowhere.
For me, I was able to overcome this by opening the .csproj files for each project, then remove the following line:
After re-opening the solution, it was able to build everything without an error.