一直在尝试使用C#在ASP.NET MVC中将迁移添加到我的项目中
由于找不到指定的命令或文件而无法执行。
可能的原因包括:
- 您拼错了一个内置的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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您在Linux上使用VSCODE吗?
如果是这种情况,则必须添加dotnet/工具路径。
您还可以检查您的工具是否在文件夹中。
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.