Cannot run global tool after installing it, must open new command prompt
See original GitHub issueAfter I have successfully installed a global tool I am not able to run it without opening a new command prompt:
C:\Users\daroth\Desktop\test>dotnet install tool dotnet-dev-certs --version 2.1.0-preview1-28051
The installation succeeded. If there is no other instruction. You can type the following command in shell directly to invoke: dotnet-dev-certs
C:\Users\daroth\Desktop\test>dotnet dev-certs -h
No executable found matching command "dotnet-dev-certs"
C:\Users\daroth\Desktop\test>dotnet-dev-certs -h
'dotnet-dev-certs' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\daroth\Desktop\test>dotnet dev-certs
No executable found matching command "dotnet-dev-certs"
Issue Analytics
- State:
- Created 6 years ago
- Reactions:10
- Comments:49 (7 by maintainers)
Top Results From Across the Web
Troubleshoot .NET tool usage issues
If you're trying to run a global tool, check that the PATH environment variable on your machine contains the path where you installed...
Read more >c# - Installed Dotnet tools give error "Could not execute ...
i found this post: Cannot find command 'dotnet ef'. and running export PATH="$PATH:$HOME/.dotnet/tools/". makes dotnet ef work until i start ...
Read more >Cannot run global tool after installing it, must open new ...
After I have successfully installed a global tool I am not able to run it without opening a new command prompt:
Read more >Install or update the latest version of the AWS CLI
This topic describes how to install or update the latest release of the AWS Command Line Interface (AWS CLI) on supported operating systems....
Read more >Cannot debug net6.0-macos Apps - Developer Community
When I hit debug, the following error is shown in the Terminal: ... You intended to run a global tool, but a dotnet-prefixed...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve the same error when using
dotnet tool install --global ***
in the new Azure Pipelines flow.My command is like:
This command outputs this:
And the next step will fail (running the above command in the same step or a different script step make no difference)
@wli3 in an automated scenario like Azure pipelines(previously VSTS) this is a big problem. There is no way to open a new shell to mitigate this. Also, just adding a better message does not solve this problem. Why does dotnet tool require this extra manual step? Npm works just fine. At the minimum,
dotnet tool install -g
should be adding the location to PATH. Can we re-activate this issue?