dotnet-exec icon indicating copy to clipboard operation
dotnet-exec copied to clipboard

Cannot execute command

Open tommck opened this issue 4 years ago • 6 comments

When trying to run dotnet execute test with the following config:

{
  "name": "app",
  "env": {},
  "commands": {
    "build": [
      "dotnet build"
    ],
    "test": [
      "dotnet test"
    ]
  }
}

I get this error:

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

This is on Windows 10 (and I ran dotnet tool install --global dotnet-tool-exec) before this

tommck avatar Dec 15 '20 15:12 tommck

Did you try to reload the shell?

hypervtechnics avatar May 15 '21 10:05 hypervtechnics

@tommck does it works when you run cmd /c dotnet test on your command line?

ivanparvaresh avatar Jul 11 '21 00:07 ivanparvaresh

I'm getting the same issue. Cannot run this tool. Windows 10. .Net SDK v6. Trying to run in CMD.exe. I even restarted the PC

harindaka avatar May 03 '22 11:05 harindaka

@tommck did you resolve this issue?

harindaka avatar May 03 '22 11:05 harindaka

@tommck did you resolve this issue?

I did not. I frankly don't remember what I did to move on from that, but I didn't fix this.

Sorry I couldn't be more help

tommck avatar May 03 '22 11:05 tommck

I'm currently having the same issue. I really hope it gets fixed soon 😢

VerushanNaidoo avatar Jun 29 '24 21:06 VerushanNaidoo