Skip to content

AOT compatible: make NuGet.Commandline.Xplat Aot compatible - #7207

Merged
Nigusu-Allehu merged 1 commit into
devfrom
dev-nyenework-Xplat-aot
Mar 11, 2026
Merged

Nigusu-Allehu merged 1 commit into
devfrom
dev-nyenework-Xplat-aot

Conversation

@Nigusu-Allehu

@Nigusu-Allehu Nigusu-Allehu commented Mar 11, 2026 •

Copy link
Copy Markdown
Member

Bug

Fixes:
Related: NuGet/Home#14408

Description

This PR makes the xplat project AOT compatible.

  • use source generated JsonSerializerContext (PackageSearchJsonContext) to avoid reflection based type discovery
  • Replace Enum.GetValues(Type) with Enum.GetValues<TEnum>() in multiple places.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@Nigusu-Allehu Nigusu-Allehu self-assigned this Mar 11, 2026
@Nigusu-Allehu
Nigusu-Allehu marked this pull request as ready for review March 11, 2026 01:02
@Nigusu-Allehu
Nigusu-Allehu requested a review from a team as a code owner March 11, 2026 01:02
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