Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

zsh: command not found: dotnet-ef

I am using asp.net core 2.1 with visual studio code or rider in mac. I already have a 2.1 sdk install on mac, while using the below command

dotnet-ef database update --project XXXX.XXXX

I get an exception as

zsh: command not found: dotnet-ef

Using the command

dotnet tool install --global dotnet-ef

getting an exception as Tool 'dotnet-ef' is already installed.

Then using this command dotnet tool restore

error NU3037: Package 'dotnet-ef 3.1.1' from source 'https://api.nuget.org/v3/index.json': The repository countersignature validity period has expired.

Package "dotnet-ef" failed to restore, due to Microsoft.DotNet.ToolPackage.ToolPackageException: The tool package could not be restored.
like image 586
San Jaisy Avatar asked Sep 13 '26 21:09

San Jaisy


1 Answers

For mac I need to export the below path

export PATH="$PATH:$HOME/.dotnet/tools/"
like image 177
San Jaisy Avatar answered Sep 15 '26 10:09

San Jaisy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!