How do I reference Entity Framework 6 from a .NET core class library in RC2?
<p>I have a .NET core class library from which I want to reference Entity Framework 6.1.3. Here is my project.json:</p>

<pre><code>{
  "version": "1.0.0-*",

  "dependencies": {
    "NETStandard.Library": "1.5.0-rc2-24027",
    "EntityFramework": "6.1.3" 
  },

  "frameworks": {
    "netstandard1.5": {
      "imports": "dnxcore50"
    }
  }
}
</code></pre>

<p>I'm getting this compilation error:</p>

<blockquote>
  <p>The dependency EntityFramework 6.1.3 does not support framework
  .NETStandard,Version=v1.5.</p>
</blockquote>

<p>So I tried switching the NetStandard.Library dependency to Microsoft.NETCore.App like so:</p>

<pre><code>{
  "version": "1.0.0-*",

  "dependencies": {
    "Microsoft.NETCore.App": {
    "version": "1.0.0-rc2-3002702",
    "type": "platform"
    },
    "EntityFramework": "6.1.3"
  },

  "frameworks": {
    "netcoreapp1.0": {
      "imports": [
        "dotnet5.6",
        "dnxcore50",
        "portable-net45+win8"
      ]
    }
  }
}
</code></pre>

<p>I'm getting a smilar compilation error as earlier:</p>

<blockquote>
  <p>The dependency EntityFramework 6.1.3 does not support framework
  .NETCoreApp,Version=v1.0</p>
</blockquote>

<p>Basically, this leaves me with no option to reference Entity Framework 6.1.3 from .NET core. </p>

<p>I can refer EF Core from .NET core class libraries, but it is not something I wish to do right now.</p>

<p>Is there a solution to this?</p>