Skip to content

Installing global tools that are RID specific. #24350

Closed
@AraHaan

Description

@AraHaan

So, I have a global tool that is meant to be RID specific to do specific tasks based on a particular RID, is it possible to package them into RID specific tool packages and be able to install them based on the RID of the sdk itself?

For example one goes to try to install my global tool (without knowing the RID of their SDK):

dotnet tool install -g mytool

where mytool has only RID specific packages.

I am asking this because I need to have it to where my tool downloads specific files based on the RID of the .NET SDK that installed it, unless there is a way for the tool to obtain the RID of the .NET SDK without itself being RID specific.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions