ASP.Net Migration Error
I did a lot of updates on my project and since I use Entity Framework Code First, I depend on migration commands. This time, my Visual Studio suddenly does not recognize the commands. I have the following error message when attempting to enable migration:
Some people say to reinstall entity framework with the following command:
But it didn't work for me since I have it installed, so I find a way to force reinstall the package which works! The command as follow:
The term 'Enable-Migrations' is not recognized as the name of a cmdlet, function, script file, or operable program
Some people say to reinstall entity framework with the following command:
Install-Package EntityFramework -IncludePrerelease
But it didn't work for me since I have it installed, so I find a way to force reinstall the package which works! The command as follow:
Update-Package -reinstall EntityFramework -IncludePrerelease
Comments
Post a Comment