Skip to content

Add support for --os the restore command #24251

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

Open
baronfel opened this issue Mar 7, 2022 · 0 comments · May be fixed by #49166
Open

Add support for --os the restore command #24251

baronfel opened this issue Mar 7, 2022 · 0 comments · May be fixed by #49166
Assignees
Labels
Area-CLI untriaged Request triage from a team member

Comments

@baronfel
Copy link
Member

baronfel commented Mar 7, 2022

Describe the solution you'd like

In .NET 6 we added support for implied/partial RIDs, as well as flags for specifying the OS portions of a RID. If this flag are specified, any missing RID portions are inferred from the current SDK execution context. For example, dotnet publish --os linux run on an x64 Windows system results in a final RID of linux-x64.

This support exists already in the dotnet build command. We should also support this flags on the restore command, since it already allows for RID-specific restores via the -r/--runtime flag. This should be done similar to the existing dotnet restore --arch flag.

@ghost ghost added the untriaged Request triage from a team member label Mar 7, 2022
@marcpopMSFT marcpopMSFT changed the title Add support for --os and --arch to the restore command Add support for --os the restore command May 27, 2025
@Copilot Copilot AI linked a pull request May 27, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-CLI untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants