0
votes

I am trying to create a migration on an ASP.NET 5 / EF 7 project. In project.json I have:

"dependencies": {
  "EntityFramework.Commands": "7.0.0-rc1-final"
  // Other dependencies
},

"commands": {
  "web": "Microsoft.AspNet.Server.Kestrel --server.urls=http://localhost:5000",
  "ef": "EntityFramework.Commands"
}

I ran "dnx ef migrations add 'Start'" on Developer Command Prompt inside the project folder and the migration was created without a problem ...

When I run "ef migrations add 'Start'" on Package Manage Console I get:

"ef : The term 'ef' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again."

I have no idea why I get this error ... The project.json seems fine ...

Am I missing some step here?

1

1 Answers

2
votes

The Entity Framework doesn't offer this in the Package Manager Console currently. More information can be found here: https://github.com/aspnet/EntityFramework/issues/978