c# - dotnet ef - 要执行的应用程序不存在 C:\Users\
问题描述
我想使用 .NET Core 实体框架。但我不能因为一个错误:
dotnet ef
The application to execute does not exist:
'C:\Users\Curso\.dotnet\tools\.store\dotnet-ef\2.1.14-servicing-32113\dotnet-ef\2.1.14-servicing-32113\tools\netcoreapp2.1\any\dotnet-ef.dll'.
解决方案
您需要安装 dotnet-ef 工具,最好是全局安装,以便您可以从任何地方运行它。您可以从 cmd 或 Powershell 终端或您正在使用的任何终端运行它:
dotnet tool install --global dotnet-ef
推荐阅读
- python - 如何获取 11PM 或任何时间的时间戳,Python 3.6
- react-final-form - 反应最终形式内的链接不起作用
- python - 是否可以通过套接字与 django 进行通信
- python - Python:如何从生成器中检索对 self 对象的引用?
- javascript - 使用 JavaScript 将 Laravel 刀片模板附加/添加到当前视图
- database - Symfony 4(Doctrine 2.7)联合继承
- ocr - 如何在 webxr 会话期间获得更清晰的视频输出(Chrome Canary 70.0.3538.2)?
- git - 从本地开始的集中式 Git 存储库
- selenium-webdriver - Selenium 定位器中的方括号
- reactjs - 使用 useReducer 手动获取数据