Question: are you missing a using directive or an assembly reference how to solve this error?
Answer: Clean solution in VisualStudio. Close VisualStudio. Delete all "bin" and "obj" Folders (from the whole solution) manually. Delete "packages" Folder manually. Restart VisualStudio. Rebuild all.