【发布时间】:2020-09-22 16:14:57
【问题描述】:
我一直在 Windows 和 Linux(Ubuntu) 等不同操作系统中测试 dotnet core 3。他们都可以在 EF Core 中正常工作!
但是,我决定给Windows WSL - Windows Subsystem for Linux 一个机会,看看它是如何工作的。这就是我在这里的原因!
WSL 和 Ubuntu 18.04 的问题是:
我全局安装了 EF Core 并重新启动了终端。 * 到目前为止,EF 版本为 3.1.4
> dotnet tool install --global dotnet-ef
当我尝试运行任何dotnet ef 命令时出现以下错误:
> dotnet ef database update
Could not execute because the specified command or file was not found.
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.
有人在使用 Windows WSL 和 Ubuntu 18.04 时遇到过同样的错误吗?
【问题讨论】:
标签: entity-framework .net-core windows-subsystem-for-linux ef-core-3.0