The term 'Add-migration' is not recognized - VS2017 and EntityFrameworkCore

entity-framework-core visual-studio-2017

Question

I am posting this question just in case the solution I found would help someone else out. While working in Visual Studio 2017 rc4 each time I tried to run the Add-Migration command in the Package Manager console I get the following error:

The term 'Add-migration' is not recognized...

1
30
2/22/2017 12:12:23 PM

Popular Answer

The solution that worked for me after trying a whole raft of other solutions posted, was to:

  • right click on my project
  • select Manage Nuget Packages
  • select the browse tab
  • thick Include prerelease check box
  • install the Microsoft.EntityFrameworkCore.Tools

N.b that aspnetcore project in visual studio 2017 do not seem to have the project.json file.

43
7/10/2019 7:04:30 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow