[英]Have been trying to add migration to my project in ASP.NET MVC using C# but am getting these errors
Could not execute because the specified command or file was not found.
由于找不到指定的命令或文件,无法执行。
Possible reasons for this include:
可能的原因包括:
- You misspelled a built-in dotnet command.
您拼错了内置的 dotnet 命令。
- You intended to execute a .NET program, but dotnet-ef does not exist.
您打算执行一个 .NET 程序,但 dotnet-ef 不存在。
- You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
您打算运行一个全局工具,但在 PATH 上找不到具有此名称的带 dotnet 前缀的可执行文件。
Do you use VSCode on linux ?你在 linux 上使用 VSCode 吗? If this is the case, you have to add the dotnet/tools path.
如果是这种情况,您必须添加 dotnet/tools 路径。 You can also check if your tool is in the folder.
您还可以检查您的工具是否在文件夹中。
export PATH="$PATH:$HOME/.dotnet/tools"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.