-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Use implicit RID for Publish Properties
Based on #23539, we have the opportunities to make additional improvements fit-and-finish improvements. The referenced change enables an implicit RID to be used when a RID is needed, specifically via the CLI like with --self-contained. There several properties where that is equally valuable.
We should extend the same change to:
SelfContainedPublishAotPublishReadyToRunPublishSingleFilePublishTrimmed
These proposed changes make it obvious that we're missing PublishSelfContained as an option. It's odd that this has never come up. It would enable producing self contained apps, but only for the publish verb, just like the other Publish* properties.
We should add:
PublishSelfContained
In retrospect, I've struggled with the lack of PublishSelfContained, but it never occurred to me that we could have such a straightforward and symmetric solution to solve that.
--use-current-runtime
The new implicit RID feature replaces --use-current-runtime. The following two lines are now equivalent.
dotnet build --self-contained
dotnet build --self-contained --use-current-runtime
We should deprecate (and undocument) --use-current-runtime going foward. It no longer has a purpose.