Skip to content

Conversation

@AArnott
Copy link
Member

@AArnott AArnott commented Jan 21, 2026

Also improve our NativeAOT test app for STJ slightly.

Copilot AI review requested due to automatic review settings January 21, 2026 23:26
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR bumps the API compatibility testing baseline version and improves the NativeAOT test application for System.Text.Json.

Changes:

  • Updated PackageValidationBaselineVersion from 2.22.11 to 2.24.84 to use a more recent baseline for API compatibility testing
  • Added JsonSerializerIsReflectionEnabledByDefault=false to the NativeAOT test project to ensure System.Text.Json uses source generators instead of reflection

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/StreamJsonRpc/StreamJsonRpc.csproj Updates PackageValidationBaselineVersion to 2.24.84 for API compatibility testing
test/NativeAOTCompatibility.Test/NativeAOTCompatibility.Test.csproj Adds JsonSerializerIsReflectionEnabledByDefault property to force source generator usage in AOT scenarios

@AArnott
Copy link
Member Author

AArnott commented Jan 22, 2026

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

This new property turns off STJ reflection-based behaviors, so that code that would fail in NativeAOT is more likely to fail w/o NativeAOT.
@AArnott AArnott force-pushed the dev/andarno/improvements branch from 73f5177 to 96acc7e Compare January 22, 2026 15:46
@AArnott AArnott merged commit 6a24100 into main Jan 22, 2026
9 checks passed
@AArnott AArnott deleted the dev/andarno/improvements branch January 22, 2026 16:09
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