question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[dotnet tool] Add ability to check if a tool is installed

See original GitHub issue

Is 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
JiaqiWang18commented, Sep 3, 2022

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.

1reaction
decriptorcommented, Sep 3, 2022

@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 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found