-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Milestone
Description
At present:
dotnet publish -c Release path/code -o path/app /p:PublishSingleFile=truethrows error:
error NETSDK1031: It is not supported to build or publish a self-contained application without specifying a RuntimeIdentifier. Please either specify a RuntimeIdentifier or set SelfContained to false.
which requires a fix like:
dotnet publish -c Release path/code -o path/app /p:PublishSingleFile=true -r osx-x64It is fairly a common usecase to publish an app for platform with same RID as host.
However, the error is good to keep it an explicit and conscious decision of user; instead of falling back to some default value.
Please add --use-current-rid or --infer-rid option for automation and documentation convenience.
This way user will still explicitly specify RID option, without supplying platform specific value.
TheButlah, dasMulli, tmds, 0xced, nagilson and 2 more
Metadata
Metadata
Assignees
Labels
No labels