I started a new MVC project with EntityFramework -Version 6.1.2
using Visual Studio 2013 latest update. I made a couple of migrations and updated the database. After this I checked out the project on another computer and opened with Visual Studio 2015 CTP 6.
If I go in the package manager console and try to run any migration commands, they're not recognized:
add-migrations : The term 'add-migrations' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
How can I manage my migrations using Entity Framework 6 in Visual Studio 2015?
Have you tried uninstalling and reinstalling EntityFramwork NuGet package? I had the same issue as described and it solved it.
OK so I had this problem with an EF6 project I started in VS2013 and upgraded to VS2015 RC. The commands were available if I opened it in VS2013 but not in VS2015. What I found to solve the problem quickly and easily was to use the reinstall package command:
Update-Package –reinstall EntityFramework
This fixed any command missing errors and then allowed me to start database updates and create new migrations within VS2015.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With