Skip to content

Conversation

@mayuki
Copy link
Contributor

@mayuki mayuki commented Jan 23, 2025

This PR adds attribute for trimmer to GeneratedAssemblyMessagePackResolverAttribute.

The metadata about the type of the generated Resolver (resolverType) specified in GeneratedAssemblyMessagePackResolverAttribute is not referenced anywhere, so it will be removed by the trimmer. As a result, the generated Resolver cannot be found and does not work as expected on Native AOT.

Work on Native AOT support was previously in progress in #1998, but it was not merged, so this PR is a workaround to make it minimally workable.

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.

2 participants