title: The current runtime target framework is not compatible with project
body: <p>I am attempting to perform an initial migration after adding <code>Entity Framework 7</code> to my Asp.Net 5 project. I am following this <a href="http://ef.readthedocs.org/en/latest/getting-started/aspnet5.html">documentation</a>.</p>
  
  <p>In my <code>project.json</code> I have specified:</p>
  
  <pre><code>  "commands": {
      "web": "Microsoft.AspNet.Server.Kestrel",
      "ef": "EntityFramework.Commands"
    },
  
    "frameworks": {
      "dnxcore50": { }
    }
  </code></pre>
  
  <p>I am attempting to execute the following command in the project directory via a command prompt:</p>
  
  <pre><code>dnx ef migrations add MyFirstMigration
  </code></pre>
  
  <p>But I get the following error:</p>
  
  <blockquote>
    <p>System.InvalidOperationException: The current runtime target framework
    is not compatible with ProjectName. The current runtime target
    framework: 'DNX, Version=v 4.5.1(dnx451) Please make sure the runtime
    matches a framework specified in project.json.</p>
  </blockquote>
  
  <p>The weird thing is that my <code>project.json</code> is definitely targeting <code>dnxcore50</code>. I have also checked in <code>global.json</code>:</p>
  
  <pre><code>{
    "projects": [ "src", "test" ],
    "sdk": {
      "version": "1.0.0-beta8",
      "architecture": "x86",
      "runtime": "coreclr"
    }
  }
  </code></pre>
  
  <p>And my package dependencies all reference beta8:</p>
  
  <pre><code>  "dependencies": {
      "EntityFramework.Commands": "7.0.0-beta8",
      "EntityFramework.Core": "7.0.0-beta8",
      "EntityFramework.SqlServer": "7.0.0-beta8",
      "Hl7.Fhir.DSTU2": "0.90.2",
      "Microsoft.AspNet.Authentication.Cookies": "1.0.0-beta8",
      "Microsoft.AspNet.Authentication.OpenIdConnect": "1.0.0-beta8",
      "Microsoft.AspNet.Diagnostics": "1.0.0-beta8",
      "Microsoft.AspNet.IISPlatformHandler": "1.0.0-beta8",
      "Microsoft.AspNet.Mvc": "6.0.0-beta8",
      "Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-beta8",
      "Microsoft.AspNet.Server.Kestrel": "1.0.0-beta8",
      "Microsoft.AspNet.StaticFiles": "1.0.0-beta8",
      "Microsoft.AspNet.Tooling.Razor": "1.0.0-beta8",
      "Microsoft.Dnx.Runtime": "1.0.0-beta8",
      "Microsoft.Framework.Configuration.Json": "1.0.0-beta8",
      "Microsoft.Framework.Configuration.UserSecrets": "1.0.0-beta8",
      "Microsoft.Framework.Logging": "1.0.0-beta8",
      "Microsoft.Framework.Logging.Console": "1.0.0-beta8",
      "Microsoft.Framework.Logging.Debug": "1.0.0-beta8",
      "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0-beta8"
    }
  </code></pre>