Page 1 of 1

Der Befehl „dotnet ef“ funktioniert in .NET Core 2.2 nicht

Posted: 22 Dec 2024, 03:42
by Anonymous
Ich habe versucht, Visual Studio Code als IDE zu verwenden. Als ich den Befehl „add-migrations“ verwenden musste, stieß ich auf die Situation, den Befehl „dotnet ef migrations add name“ zu verwenden, aber wenn ich versuche, diesen Befehl zu verwenden, erhalte ich die Fehlermeldung:
dotnet : Could not execute because the specified command or file was not found.
At line:1 char:1
+ dotnet ef
+ ~~~~~~~~~
+ CategoryInfo : NotSpecified: (Could not execu... was not found.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError

Possible reasons for this include:
* You misspelled a built-in dotnet command.
* You intended to execute a .NET Core program, but dotnet-ef does not exist.
* You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.

Ich habe mehrere Lösungen ausprobiert und keine hat funktioniert. Gibt es einen Ausweg?
Ich verwende .NET Core 2.2.