I opened the project in explorer and deleted the entire .vs folder. Then, I reopened the project in visual studio and it worked again.