7
Good morning,
I have projects using System.Web.MVC na versão 4.0.0.1
, worked normally in the 2013 version of Visual Studio, now I’m trying to work with Visual Studio 2015 and my Views no longer recognize some properties for example ViewBag e @model
, they continue to work but are highlighted in red with the following message "The name 'Viewbag' does not exist in the Current context".
I’ve been looking at a number of online solutions, but I haven’t found anything to fix it yet. I would not like to have to upgrade to MVC 5 because I have many projects in parallel and would have to update all.
Is there any solution to this problem that I believe is compatibility ?
I don’t have time to create an answer, take a look here
– Jéf Bueno
Right-click yours in your view (e.g., Index.cshtml) and go to "Open With", and check that the "Razor Editor" option is Default.
– Diullian