I ran into the very same problem.
You will find lots of banter out there related to MvcBuildViews and various error conditions.
But none seem to mention this particular error.
A quick fix that worked for me was to delete the contents of the “obj” directory for the affected web project, then rebuild.