ivanparvaresh / dotnet-exec

Execute shell script as dotnet tasks
MIT License
22 stars 3 forks source link

Cannot execute command #36

Open tommck opened 3 years ago

tommck commented 3 years ago

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

hypervtechnics commented 3 years ago

Did you try to reload the shell?

ivanparvaresh commented 3 years ago

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

harindaka commented 2 years ago

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 commented 2 years ago

@tommck did you resolve this issue?

tommck commented 2 years ago

@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

VerushanNaidoo commented 4 months ago

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