dotnet-exec
dotnet-exec copied to clipboard
Cannot execute command
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
Did you try to reload the shell?
@tommck does it works when you run cmd /c dotnet test on your command line?
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
@tommck did you resolve this issue?
@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
I'm currently having the same issue. I really hope it gets fixed soon 😢