title: .NET Core Class Library with EF 7: type Func<,> is defined in an assembly that is not referenced
body: <p>I have created a .NET Core Class Library for my database context. This is how my project.json looks like: </p>
  
  <pre><code>{
    "version": "1.0.0-*",
    "description": "MyProject.EventStore.EF Class Library",
    "authors": [ "me" ],
    "tags": [ "" ],
    "projectUrl": "",
    "licenseUrl": "",
    "frameworks": {
      "net451": {
      }
    },
    "dependencies": {
      "EntityFramework.Commands": "7.0.0-rc1-final",
      "EntityFramework.MicrosoftSqlServer": "7.0.0-rc1-final"
    }
  }
  </code></pre>
  
  <p>Now I'm trying to write something like this:</p>
  
  <pre><code>context.SnapShots.FirstOrDefault(s =&gt; s.EventProviderId == snapShot.EventProviderId);
  </code></pre>
  
  <p>and I'm getting an error for <code>FirstOrDefault</code> invocation:</p>
  
  <blockquote>
    <p>Error CS0012  The type 'Func&lt;,>' is defined in an assembly that is not
    referenced. You must add a reference to assembly 'System.Runtime,
    Version=4.0.0.0, Culture=neutral,
    PublicKeyToken=b03f5f7f11d50a3a'. MyProject.EventStore.EF..NET
    Framework 4.5.1</p>
  </blockquote>