I found this link from a google search and tried it and it fixed my issue so I thought I might share that deleting the obj folders seems to work.
As it states in forum:
I had the same with an old project (after using git to move to an old version locally). Deleting the 'obj' folders fixed the issue, clean is insufficient.
Two users found that this fix the issue. Most also found doing a clean and then removing the obj folder by hand then redoing a nuget restore seemed to fix the issue.