一直在尝试使用C#在ASP.NET MVC中将迁移添加到我的项目中

发布于 2025-02-11 13:04:44 字数 193 浏览 1 评论 0原文

由于找不到指定的命令或文件而无法执行。

可能的原因包括:

  • 您拼错了一个内置的dotnet命令。
  • 您打算执行.NET程序,但dotnet-ef不存在。
  • 您打算运行一个全局工具,但是在路径上找不到该名称的dotnet-prefix。

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 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

病女 2025-02-18 13:04:44

您在Linux上使用VSCODE吗?
如果是这种情况,则必须添加dotnet/工具路径。
您还可以检查您的工具是否在文件夹中。

export PATH="$PATH:$HOME/.dotnet/tools"

Do you use VSCode on linux ?
If this is the case, you have to add the dotnet/tools path.
You can also check if your tool is in the folder.

export PATH="$PATH:$HOME/.dotnet/tools"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文