Unable to Enable EF6 Migrations in Visual Studio 2015 Web API project

asp.net-core c# ef-migrations entity-framework-6 visual-studio-2015

Question

In my VS2015 ASP.NET 5 Web API project I installed EF6.1.3 but the enable-migrations command in Package Manage console gives me following error: The term 'enable-migrations' is not recognized as the name of a cmdlet, function, script file, or operable program. None of the suggestions here work for me - giving me still the same error

UPDATE

So far, I've tried the following commands and have closed/re-open the VS (even as administrator):

Install-Package EntityFramework -IncludePrerelease

Update-Package –reinstall EntityFramework

Install-Package EntityFramework.Commands -Pre

1
1
5/23/2017 11:53:02 AM

Popular Answer

I used the solution from this answer

You need to uninstall and then install the EntityFramework again. Just in case the uninstall failed because the EntityFramework used by other package as dependency, use command below to force the uninstall process.

Uninstall-Package -f EntityFramework

0
5/23/2017 11:53:02 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