title: WebMatrix 2 doesn't recognize EntityFramework helper
body: <p>I just started to work on WebMatrix, I did <a href="http://www.asp.net/web-pages/tutorials/introducing-aspnet-web-pages-2/getting-started" rel="nofollow">this</a> tutorial to learn the basic and then I started with <a href="http://www.mikesdotnetting.com/Article/182/Entity-Framework-Code-First-Development-With-WebMatrix" rel="nofollow">this</a> one to get started with Entity Framework on WebMatrix (Note: That tutorial is for WebMatrix 1, but the only thing I see changed was the way you install helpers into your project). The thing is, I installed the Entity Framework helper, but my project doesn't recognize the EntityFramework.dll. </p>
  
  <p>I get this error <code>The type or namespace name 'MaxLength' could not be found (are you missing a using directive or an assembly reference?)</code>. But the EntityFramework.dll does appear in my bin folder, what is going on? I don't understand why the reference isn't working.</p>
  
  <p>This is my Web.config file according to the second tutorial and after installing the EntityFramework helper:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;configSections&gt;
      &lt;!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --&gt;
    &lt;/configSections&gt;
    &lt;system.web&gt;
      &lt;compilation debug="true" targetFramework="4.0"&gt;&lt;assemblies&gt;&lt;add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /&gt;&lt;add assembly="System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /&gt;&lt;/assemblies&gt;&lt;/compilation&gt;
    &lt;/system.web&gt;
    &lt;connectionStrings&gt;
      &lt;add name="BookContext" connectionString="Data Source=|DataDirectory|Books.sdf" providerName="System.Data.SqlServerCe.4.0" /&gt;
    &lt;/connectionStrings&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>This is the compiler output <a href="http://pastebin.com/R6U6gYv5" rel="nofollow">link</a></p>
  
  <p>Am I missing something? Why does the EntityFramework.dll isn't being recognized properly by my project?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I thought the problem was solved when I copied the EntityFramework.dll from a webpage project created in Visual Studio 2012, but even though the errors aren't shown anymore, WebMatrix still doesn't recognize annotations like Table, Column, ForeignKey, InverseProperty, etc.</p>
  
  <p>I really don't understand, a simple database is created but I can't use the EntityFramework annotations to specify all I need for the database. WebMatrix should recognize the EntityFramewor.dll but it is not. I need help in this one because I'm really lost.</p>