Reputation: 77
I'm trying to add a migration for a .net core 2.0 web app through the package manager console in visual studio 2017. I receive the error: "The EntityFramework package is not installed on project ". However, EntityFrameworkCore 2.0 is installed.
I've tried:
Is there some other configuration that needs to be done somewhere else?
Since EF Core migrations work on my .Net Core 1.1 project could this issue be related to .Net Core 2.0?
Cheers!
Upvotes: 1
Views: 1989
Reputation: 149
I spent hours for this issue and finally update Visual Studio 2017 15.4.0 Preview 2.
Hope this help.
Upvotes: 0
Reputation: 30395
It looks like the EF6 commands are running. You can unload them with the following command.
Remove-Module EntityFramework
The EF Core PMC commands should be available to use after installing the following package.
Install-Package Microsoft.EntityFrameworkCore.Tools
Upvotes: 1
Reputation: 632
The EF tools for the command-line interface (CLI) are provided in Microsoft.EntityFrameworkCore.Tools.DotNet.
from https://learn.microsoft.com/en-us/aspnet/core/data/ef-mvc/migrations
Upvotes: 0