dotnet-usrlocalbindotnet不存在。

问题描述 投票:-1回答:1

我已经在我的Mac Catalina 10.15.5上下载了.NET Core 3.1 SDK(v3.1.300)。

我在Visual Studio上运行了一个小型的X-Unit测试案例。我得到了下面的错误。我研究并尝试了我在这里找到的所有建议,但仍然没有解决这个问题。谁能帮帮我?

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 Core program, but dotnet-/usr/local/bin/dotnet 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.
The application was terminated by a signal: SIGHUP

c# .net visual-studio asp.net-mvc-4 .net-core
1个回答
-1
投票

dotnet-/usr/local/bin/dotnet

应该在第一个字符后有一个空格 dotnet

dotnet /usr/local/bin/dotnet

© www.soinside.com 2019 - 2024. All rights reserved.