Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add local dotnet tools management #249

Closed

Conversation

badsyntax
Copy link
Contributor

@badsyntax badsyntax commented Dec 19, 2022

Fixes #248

Overview

  • Introduce new top level item for displaying the dotnet Local Tools
  • Use dotnet tool list --local to discover locally installed tools (this operation is actually very fast, i think it just reads the manifest file)
  • New comands: "Add local tool", "Remove local tool". "Update local tools version"
  • The UX for adding/updating/removing is very similar to how packages are managed

Installation of local tools requires a local manifest file to exist, else you'll get the following error:

dotnet tool install --local "Cake.Tool" --version "3.0.0"
Cannot find a manifest file.
For a list of locations searched, specify the "-d" option before the tool name.
If you intended to install a global tool, add `--global` to the command.
If you would like to create a manifest, use `dotnet new tool-manifest`, usually in the repo root directory.

I decided to not manage this in the extension as it's obvious to the user what needs to be done to resolve the error.

Screencast

local-tools.mov

@badsyntax badsyntax marked this pull request as ready for review December 19, 2022 13:30
@badsyntax badsyntax force-pushed the feature/248-dotnet-tools branch from e5b131b to 5f9a1b7 Compare December 19, 2022 14:00
@badsyntax
Copy link
Contributor Author

In hindsight, i don't think it's appropriate for this feature to land in this extension, and local tools are not really related to the solution. I will instead create a new extension for this feature.

@badsyntax badsyntax closed this Dec 26, 2022
@badsyntax badsyntax deleted the feature/248-dotnet-tools branch December 26, 2022 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Local dotnet tool management
1 participant