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

I installed EF6.1.3 in my VS2015 ASP.NET 5 Web API project, but theenable-migrations command gives me the following problem in the Package Manage console:The term 'enable-migrations' is not recognized as the name of a cmdlet, function, script file, or operable program. All of the recommended here do not function for me; I continue to receive the same issue.

UPDATE

I have so far tried the following commands and have shut down and restarted Visual Studio (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

This answer's answer was what I utilized.

EntityFramework needs to be uninstalled first, then reinstalled. Use the command below to force the uninstall procedure if the uninstall failed because EntityFramework was a dependence on another package.

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