https://github.com/dotnet/designs/blob/d248ad68b41866eba17e80225a08518b8202ddf6/accepted/2021/architecture-targeting.md#net-6
For the shorthand RID, the proposal is to go with --arch and -a and --os (no need for a short form of os).
.NET 6
The following changes should be included in .NET 6, motivated by the x64 emulation scenario. They are all additive and non-breaking.
The addition of the shorthand RID syntax and the parity syntax between build and publish will provide a satisfactory set of gestures to enable migration with .NET 6 to a non-breaking syntax with respect to .NET 7. In particular, users need to migrate any uses of -r to always be accompanied by one of the --self-contained or --no-self-contained switches.
https://github.com/dotnet/designs/blob/d248ad68b41866eba17e80225a08518b8202ddf6/accepted/2021/architecture-targeting.md#net-6
For the shorthand RID, the proposal is to go with --arch and -a and --os (no need for a short form of os).
.NET 6
The following changes should be included in .NET 6, motivated by the x64 emulation scenario. They are all additive and non-breaking.
buildpublishtool installtestrunwatch runwatch testtool install(separate PR from other verbs)-- Adding arch option to tool install command #19370-rRID syntax on these same verbs. Doing so would cause a breaking change in .NET 7, which seems like a unforgivable mistake.-- No-opdotnet buildanddotnet publishfor pivoting between self-contained and framework-dependent modalities, for example:-- Update self contained/ runtime command line options for build and publish #18837dotnet build -r win-x64 --self-containeddotnet build -r win-x64 --self-contained truedotnet build -r win-x64 --self-contained falsedotnet build -r win-x64 --no-self-contained-rwithout a--self-containedor--no-self-contained. The warning is for .NET 6+ apps only.-- Update self contained/ runtime command line options for build and publish #18837-rwith either--osor--arch-- Adding OS and arch command line options #18889The addition of the shorthand RID syntax and the parity syntax between
buildandpublishwill provide a satisfactory set of gestures to enable migration with .NET 6 to a non-breaking syntax with respect to .NET 7. In particular, users need to migrate any uses of-rto always be accompanied by one of the--self-containedor--no-self-containedswitches.