Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Cannot execute command #36

Open
tommck opened this issue Dec 15, 2020 · 6 comments
Open

Cannot execute command #36

tommck opened this issue Dec 15, 2020 · 6 comments

Comments

@tommck
Copy link

tommck commented Dec 15, 2020

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
Copy link

Did you try to reload the shell?

@ivanparvaresh
Copy link
Owner

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

@harindaka
Copy link

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
Copy link

@tommck did you resolve this issue?

@tommck
Copy link
Author

tommck commented May 3, 2022

@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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants