'Unable to add migration in EntityFrameworkCore 5.0.2, command not identified

(I use VS 2019 on windows 7 x64)

I follow this tutorial on EntityFramework Core https://www.entityframeworktutorial.net/efcore/entity-framework-core-console-application.aspx

According to the tutorial I downloaded EntityFrameworkCore SQLServer 5.0.2., created database context as well as Student and Course names. Next, it tells me to enter the following command into NuGet console package manager:

PM> add-migration CreateSchoolDB

Which gives me an error: "The name 'add-migration' isn't recognized as the name of commandlet, function, script file or executable program. Check the validity of name spelling and validity and existence of the path, and try again"

enter image description here

The tutorial also offers alternative command for dotnet CLI, but VS crashes when I try to open it. I have no idea where to look to find the root of the problem.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source