Skip to content
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

Add new .NET 9 NativeAOT runtime pack RIDs #18121

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

filipnavara
Copy link
Member

Contributes to dotnet/runtime#87060

Comment on lines +371 to +372
browser-wasm;
wasi-wasm;
Copy link
Member Author

@filipnavara filipnavara Jan 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume that these two could be a bit controversial. There are no official runtime packs for these two RIDs and they are only relevant for the NativeAOT/LLVM experiment in the dotnet/runtimelab repository.

However, moving fully to the runtime pack approach in .NET 9 would mean that NativeAOT/LLVM has to adapt. It's non-trivial to update the supported RID list from MSBuild in an efficient way since it requires to be done early in the restore process (ie. one cannot make a NuGet that adds browser-wasm to the list).

When doing NativeAOT publish with a RID not on this list the runtime pack is silently not downloaded and resolved, resulting in a build with no runtime libraries and bogus errors later on. There's no explicit check for this case and no user friendly error. On the other hand, with a RID on this list that has no corresponding NuGet package you get a fairly meaningful error about the NuGet package not being found.

cc @SingleAccretion

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the other hand, with a RID on this list that has no corresponding NuGet package you get a fairly meaningful error about the NuGet package not being found.

Yes I agree that is much better.

@filipnavara
Copy link
Member Author

cc @MichalStrehovsky @akoeplinger

@ivanpovazan
Copy link
Member

/cc: @maraf

@akoeplinger akoeplinger merged commit 7e601e1 into dotnet:main Jan 8, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants