title: All my view models have become dynamic on upgrading to MVC 4 (razor)
body: <p>Can anyone help me rectify an issue. I've upgraded from MVC3 to MVC4 using NuGet method in Visual Studio 2012. Now all my views' View Models have become Dynamic even though I declare their type, none of the properties can be accessed through intellisense on the view...</p>
  
  <p>So for example:</p>
  
  <pre><code>public class MyPageModel{
   public string Test {get;set;}
  }
  </code></pre>
  
  <p>My view:</p>
  
  <pre><code>@model MyPageViewModel
   &lt;div&gt;
    @Model.Test
   &lt;/div&gt;
  </code></pre>
  
  <p>Hovering over "Model" brings up "dynamic WebPage.Model".
  Hovering over "Model.Test" brings up "dynamic expression. This operation will be resolved at runtime"</p>
  
  <p>Among the other usual libraries, my project references version 2 of these:
   System.Web.Razor , System.Web.WebPages, System.Web.WebPages.Razor</p>
  
  <p>Am I missing a reference perhaps?</p>
  
  <p>Also to add, if my Viewmodel is an IEnumerable
  e.g. </p>
  
  <pre><code>@model IEnumerable&lt;MyPageViewModel&gt;
  </code></pre>
  
  <p>Hovering over the "MyPageViewModel" brings up "Validation (HTML5). Element 'MyPageViewModel' is not supported.</p>