I'm trying to learn .Net Core and I am currently stuck with this error.
When I open the NuGet Package Manager Console, the first error appears saying "Failure has occured while loading a type."
Then when I type my code add-migration addCategoryToDatabase
, it returns me errors saying "add-migration : The term 'add-migration' is not recognized as the name of a cmdlet, function, script file, or operable program."
Now, I have search StackOverflow for the solutions and found these: The term "Add-Migration" is not recognized
GitHub - add-migration : Installing Microsoft.EntityFrameworkCore.Tools fixed it.
I also tried closing the NuGet Package Manager > Save > Close VS 2019 > Open VS 2019 but the problem is still there.
I also tried to uninstall and install fresh new copy of VS with the help from this link.
I also need to mention that I am using MacOS Big Sur version 11.6
Appreciate your help on my issue.