-
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
-a
sets app to framework-dependent when SelfContained
is true
#34026
Comments
@dotnet/illink-contrib a new issue has been filed in the ILLink area, please triage |
Interesting, yeah it looks like the RID Short-Hand Resolution is called by the Architecture Flag, and if you haven't specified SelfContained then it will inject this:
Not great, good catch! We should fix this. Marking as 'team triage' to discuss timeline. |
|
Ya, that really shouldn't be there anymore. It is definitely going to break people when we fix it (yay) but it should be fixed. |
Added
Tagging @dotnet/compat for awareness of the breaking change. |
Fix is targeted for rc1 as its too late to fix this for the last preview now |
What is the PR for this change @nagilson? |
@nagilson - Is this fixed in RC1 yet? |
No, we haven't done it yet. I'll bring it up at standup today and we'll get it prioritized. Noah's been doing a lot of work on the VSCode extension to support DevKit, and this got lost in the shuffle. |
I'm working on some samples and following the excellent guidance at https://devblogs.microsoft.com/dotnet/improving-multiplatform-container-support/. The guidance doesn't work as intended when I target SCD.
My project file.
In Dockerfile:
This fails.
Works if I do:
RUN dotnet publish -a $TARGETARCH -o /app --self-contained
We should fix
-a
to be less strong. It should not overrideSelfContained
orPublishSelfContained
if set.The text was updated successfully, but these errors were encountered: