-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Architecture and OS targeting improvements for .NET 6 #18832
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
@richlander can you clarify here? Most of those verbs already have the |
All tasks finished and merged, closing this issue... |
Thanks! How can I test the latest behavior? Try a nightly build? |
Yup, pick up a nightly build in a few hours, once it's flowed: https://github.com/dotnet/installer#installers-and-binaries |
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.
build
publish
tool install
test
run
watch run
watch test
tool install
(separate PR from other verbs)-- Adding arch option to tool install command #19370-r
RID syntax on these same verbs. Doing so would cause a breaking change in .NET 7, which seems like a unforgivable mistake.-- No-opdotnet build
anddotnet publish
for 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-contained
dotnet build -r win-x64 --self-contained true
dotnet build -r win-x64 --self-contained false
dotnet build -r win-x64 --no-self-contained
-r
without a--self-contained
or--no-self-contained
. The warning is for .NET 6+ apps only.-- Update self contained/ runtime command line options for build and publish #18837-r
with either--os
or--arch
-- Adding OS and arch command line options #18889The addition of the shorthand RID syntax and the parity syntax between
build
andpublish
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.The text was updated successfully, but these errors were encountered: