I've been through a lot of similar issues, but could not find anything that worked for me.
I'm upgrading my IDE from the VisualStudio for Web (v10) to Visual Studio 2015 (v14, I guess) Community Edition. The main project that I'm trying to use on the new IDE is a MVC 5 (5.2.3), with EF 6.1 (6.1.3) and a bunch of other stuff.
Problem is: When opening the project on the new IDE, everything looks fine (it even compiles and work). I got the MVC context menu working on the project explorer (showing the "Add Controller..." and "Add View..." when appropriate). Only (really annoying) thing is the Razor Intellisense.
When I do open a View file (.cshtml) I receive warnings on several helpers, some of the "using" are greyed out (even though they're supposed to be needed) and the @model myModel is shown like everything after the @model directive is not razor (it's treated like HTML by the intellisense coloring).
What I've already found and tried:
- I've already tried to clear the UserData from the vs (devenv /ResetUserData)
- I've already tried to run the VS2015 in safe mode
- I've already tried to run VS2015 as Administrator
- I've already tried to set the Project's target framework to 4.5.1 (used to be 4.5)
- I've already tried to open the project on Visual Studio Community 2013 saving it there before trying to use it on VS2015.
When creating another MVC project from the VS2015, everything works fine.
Here's an example of the annoying issue: