I installed the following packages:
Microsoft.EntityFrameworkCore.Design(7.0.2)
Microsoft.EntityFrameworkCore.Sqlite(7.0.2)
and I already installed the Entity Framework. When I tried to run this command:
dotnet ef migrations add InitialMigration I get this error:
No project was found. Change the current working directory or use the –project option.
I alreadt tried go to the project folder using cd "C:…" it doesn’t work.
I described the what i tried so i am going to leave here blank sorry for this because i am very bad question asker at Stack Overflow.
>Solution :
If you have several projects in one solution or if you have deleted and created a project several times, you may encounter this error (of course, there are other reasons).
This error occurred because Migration could not automatically determine which project to select.
You can solve this problem by adding your project name
dotnet ef migrations add InitialMigration --project TestAPI
