[release/10.0] Fix Native AOT-incompatible reflection in CalendarTestBase by Copilot · Pull Request #126817 · dotnet/runtime (original) (raw)

Change #122373 broke native AOT testing because it introduced trimming incompatible code into a test.

/cc @MichalStrehovsky

Customer Impact

Test only change. We broke release/10.0 using a release/10.0-only change.

Regression

Testing

Outerloop run.

Risk

Low. Test only.

IMPORTANT: If this backport is for a servicing release, please verify that:

Package authoring no longer needed in .NET 9

IMPORTANT: Starting with .NET 9, you no longer need to edit a NuGet package's csproj to enable building and bump the version.
Keep in mind that we still need package authoring in .NET 8 and older versions.