[dotnet tool] Add ability to check if a tool is installed
See original GitHub issueIs your feature request related to a problem? Please describe.
Currently there is ability to run dotnet tool list
and dotnet tool list -g
which will list all your local and global tools. This is useful if you are looking at the list. My problem is that I’m trying to automate this check.
ie, I’m trying to check if dotnet-trace
is installed on Linux. My current hack is test -e "~/.dotnet/tools/dotnet-trace"
and then check the exit code.
Describe the solution you’d like
It’d be helpful if you could check for a specific tool. Maybe allow list
to take specific tool?
ie,
dotnet tool list dotnet-trace
or dotnet tool list -g dotnet-trace
and have an exit code of 0
for installed and 1
for missing?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:5 (4 by maintainers)
Top Results From Across the Web
dotnet tool list command - .NET CLI
The dotnet tool list command provides a way for you to list all .NET global, tool-path, or local tools installed on your machine....
Read more >How to ensure a "dotnet tool" is installed in an Azure ...
Try running the script as dotnet tool update dotnet-project-licenses -g. If the tool isn't installed this command should install it, and if ......
Read more >dotnet tool install command - .NET CLI
The dotnet tool install command installs the specified .NET tool on your machine.
Read more >globally install a tool if not installed from a c# build command
So I need to first check if it is installed, and only if it isn't, install it. My first solution: Write a batch...
Read more >dotnet-counters diagnostic tool - .NET CLI
Learn how to install and use the dotnet-counter CLI tool for ad-hoc health monitoring and first-level performance investigation.
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
Hi everyone, my name is Jacky and I am a CS student at JHU. I have talked with Elinor and I will be working on this feature through semesters of code.
@JiaqiWang18 That is amazing! I’m sure you are all set up to tackle this, but feel free to reach out if you have any questions 😃