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:

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

Popular posts from this blog

Sentinel One Strikes Again. No internet connection. Uninstall Sentinel One Agent.

A2 Hosting Let's Encrypt Can't Install Certificate on ASP.NET Core Application

NuGet Package Reference NU6105 Publish Error