Open
Description
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