I've a project in MVC 3. It works perfectly and each time I build it, it succeeds. However, Visual Studio insist in showing compile errors in views in each razor syntax. For example:
The name 'model' does not exist in the current context D:\ ... Detail.cshtml
That line is simple:
@model Namespace.DetailViewModel
I've already tried:
- Cleaning solution
- Cleaning solution and deleting
binandobjfolders. - Closing VS and reopening it (even with a reboot in the middle).
Note: I'm using Visual Studio 2012.