I am trying to follow this tutorial: https://docs.efproject.net/en/latest/platforms/aspnetcore/existing-db.html
When I try to run :
Scaffold-DbContext "Server=myserver1;Database=mydb;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models
I get this error :
Cannot execute this command because Microsoft.EntityFrameworkCore.Design is not installed. Install the version of that package that matches the installed version of Microsoft.EntityFrameworkCore and try again.
This is part of my project.json
"tools": {
"Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview2-final",
Any ideas?
Peter
Microsoft.EntityFrameworkCore.Design
and make sure it's the same version asMicrosoft.EntityFrameworkCore
– Train Nov 8 '16 at 19:03