.net-core - dotnet-ef 安装后还是找不到
问题描述
我dotnet-ef
在 Ubuntu 服务器上安装了该工具,并且安装成功。但是,仍然没有找到该程序:
~/app$ dotnet --version
3.1.201
~/app$ dotnet tool install --global dotnet-ef --version 3.1.3
Since you just installed the .NET Core SDK, you will need to logout or restart your session before running the tool you installed.
You can invoke the tool using the following command: dotnet-ef
Tool 'dotnet-ef' (version '3.1.3') was successfully installed.
重启服务器后:
~/app$ dotnet-ef migrations add "First On Server"
dotnet-ef: command not found
~/app$ which dotnet
/usr/bin/dotnet
~/app$ which dotnet-ef
~/app$
如何dotnet-ef
在 Ubuntu 机器上获取该工具?
解决方案
该dotnet tool install
命令需要提升!
推荐阅读
- javascript - 无论如何,在 CSS 中的 div 内具有圆形边框的孩子上是否有共享线性渐变?
- javascript - Javascript 返回无效日期字符串的有效日期
- mysql - 创建DATETIME Stamp并填写表MySQL
- swiftui - SwiftUI 中未启用文本字段
- django - forms.py 中可能为空的外键导致非空约束失败
- javascript - JSON.parse()返回输入的意外结束
- haskell - Base64 规范编码
- java - 无法使用 Java Streams 取消计划任务列表
- swift - Swift 错误:无法构造“人类”,因为它没有可访问的初始化程序
- java - 尝试在 Eclipse 中使用 Java VisualVM