Skip to content

Design for dotnet tool update --all #37237

@JL03-Yue

Description

@JL03-Yue

per issue #19650

I observed that the original issue reporter has shared a feature with similar functionalities here. The implementation appears thought out, and there's an opportunity to standardize the format further to align with the current structure of the dotnet tool. This effort is commendable and serves as both great work and a source of inspiration.

Ideas for dotnet tool update --all option

For global tools

Acquiring the list of dotnet tools
It is able to use dotnet tool list -g command to acquire the list of global tools installed. Since it is of the following format, it is able to read in the list of packageIds in the first column.
image

Updating the list of dotnet tools
After getting the list of dotnet tools, it might be able to use dotnet tool update [packageId] -g using DotnetCommand or other command executors.

For local tools

Acquiring the list of dotnet tools
Similar to global tools, It is able to use dotnet tool list --local command to acquire the list of local tools installed. Local tools has 4 columns and should read in the list of packageIds in the first column.
image

Updating the list of dotnet tools
After getting the list of dotnet tools, it might be able to use dotnet tool update [packageId] using DotnetCommand or other command executors.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions