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 .
![No description](https://cdn.answeroverflow.com/1183297079620145162/image.png)
![No description](https://cdn.answeroverflow.com/1183297079964074004/image.png)
![No description](https://cdn.answeroverflow.com/1183297080236707870/image.png)
![No description](https://cdn.answeroverflow.com/1183297080438046850/image.png)
![No description](https://cdn.answeroverflow.com/1183297080702271608/image.png)
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
![No description](https://cdn.answeroverflow.com/1183299322364825640/image.png)
but its in here
![No description](https://cdn.answeroverflow.com/1183299396847284224/image.png)
@ZZZZZZZZZZZZZZZZZZZZZZZZZ
Yeah, seems it's installed
seems to be working as intended now, thanks alot mate 🙂
Nice