Skip to content

New --os argument for dotnet restore  #37245

Open
@joegoldman2

Description

@joegoldman2

Summary

Currently, the dotnet restore command lacks an option to specify the target operating system directly, similar to the existing options in dotnet build and dotnet publish. I propose the addition of a new argument: --os <OS>.

Motivation

The motivation behind this request is to align the dotnet restore command with the capabilities of dotnet build and dotnet publish, which both support the --os argument. While dotnet restore already has the -r|--runtime option to specify the target runtime identifier, having a dedicated --os argument would provide consistency.

Usage

dotnet restore --os linux

Additional Information

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions