-
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
Portable RID PublishAOT doesn't work from source-build VMR .NET 9 Preview 5 #41727
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. |
1 similar comment
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. |
It probably needs #41198 (latest preview 6 build) |
I was expecting that would fix matching/non-portable RID builds. Will that also fix portable RID builds? |
dotnet-publish will use the bundled ILCompiler package with that change (and skip looking for it in nuget feeds). |
Even if the user wants to target portable RIDs? |
No, then it should download the |
|
No, it will use the portable rid to enable a consistent user-experience between portable and non-portable builds. The issue with preview5 is that it knows about the non-portable ILCompiler and ProcessFrameworkReferences prefers that for the host over the portable one. We need to fix this. This is the desired behavior: dotnet/source-build#1215 (comment). |
Ah, I forgot that --ucr refers to |
Describe the bug
Trying to publish a hello-world console application with a source-build VMR targeting a portable RID doesn't work. Neither does using
--use-current-runtime
.To Reproduce
Further technical details
dotnet --info
cc @tmds
The text was updated successfully, but these errors were encountered: