I have the strangest problem using Razor views. I have two different projects, and one works fine and the other doesn't. But it is very strange that the project does not work, another colleague has the same code and the same visual studio 2013 , and it works great for him. My first thoughts were web.config and the links I used, but I updated to the latest MVC 5.2 nuget package package and it still does not work.
When I type @modelabove, he does not know what it is and acts as if it should not be, and when I type @Html.HiddenFor(x => x.Name), he does not know what it is HiddenFor. The page will work if I run it, but when developing the page, it will see the model as a dynamic type, and I can not use intellisense at all. I also deleted the suo file.
Update: Even this does not work.@using (Html.BeginForm....
Any ideas?
source
share