I just want to reiterate a solution that Bradley Uffner mentioned buried in the comments above.
-
Close Visual Studio
-
Delete the hidden
.vsfolder -
Open Visual Studio and rebuild your project
Keep in mind that this is a very generic error that has multiple causes and solutions, so this may not work for you, but it’s definitely worth a shot since I know it has worked for me in the past on several occasions.