Super noob - Trying to add/create a migration in VSCode
Ok im doing this tutorial book
https://s3.amazonaws.com/recaffeinate-files/LittleAspNetCoreBook.pdf
page 53
"dotnet ef migrations add AddItems"
this is not working returning Could not execute because the spec command or file is not found
I installed Nuget, and tried to install Microsoft.EntityFrameworkCore.Tools.
but it has returned Install-Package : No match was fou nd for the search....
I Installed Entity Framework extension .
still no luck.
Any ideas what im missing .





9 Replies
dotnet tool list --global
should list dotnet-ef
If it does not, dotnet tool install -g dotnet-ef
as you can see, that's what it's listed as
-g
to install it globally
The Install-Package
is for VS 2022 package manager console
Since you're using VS Code, you want dotnet
CLI instead
@Rettoxahh thanks heaps , its def not installed now
not sure if this worked

but its in here

@ZZZZZZZZZZZZZZZZZZZZZZZZZ
Yeah, seems it's installed
seems to be working as intended now, thanks alot mate 🙂
Nice