首页 > 解决方案 > 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'.

错误消息截图

错误信息截图 2

标签: c#.net-coreentity-framework-core

解决方案


您需要安装 dotnet-ef 工具,最好是全局安装,以便您可以从任何地方运行它。您可以从 cmd 或 Powershell 终端或您正在使用的任何终端运行它:

dotnet tool install --global dotnet-ef 

推荐阅读