dotnet / dotnet/sdk

How can I restore a single dotnet tool according to the local tool manifest?

Open
#49,860 5 comments 1 reaction 1 assignee Claimed by @dsplaisted View on GitHub
Area-Tools
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

We have several dotnet tools defined in the local tool manifest of our repository.
Some of those tools are needed only for specific tasks or pipelines, but I found no way to restore only a single tool to the version defined in the manifest (currently using 9.0.301):

```
dotnet tool install MyTool.Cli
```
always does an update, I have no way to skip that.

```
dotnet tool restore
```
restores all tools defined in the manifest.

It would be very helpful, if either `dotnet tool install` had an option to skip updates, or `dotnet tool restore` had an option to restore only a single tool by its name.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.