Skip to content

Downgrade System.Text.Json to 8.0.5 for ILMerge compatibility#173

Merged
rmarinho merged 3 commits into
dotnet:mainfrom
rolfbjarne:stj-8
Apr 30, 2026
Merged

Downgrade System.Text.Json to 8.0.5 for ILMerge compatibility#173
rmarinho merged 3 commits into
dotnet:mainfrom
rolfbjarne:stj-8

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member

Version 9.0.4 internal types are incompatible when ILMerged into a
netstandard2.0 assembly and loaded in .NET 10 runtime.

Version 9.0.4 internal types are incompatible when ILMerged into a
netstandard2.0 assembly and loaded in .NET 10 runtime.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 addresses an ILMerge compatibility issue when a netstandard2.0 assembly (containing ILMerged System.Text.Json) is loaded on a .NET 10 runtime by pinning System.Text.Json to a version that avoids the problematic 9.0.4 internal-type surface.

Changes:

  • Downgrade System.Text.Json from 9.0.4 to 8.0.5 for the netstandard2.0 target in Xamarin.MacDev.

@rmarinho

Copy link
Copy Markdown
Member

@copilot resolve the merge conflicts in this pull request

Removed unused package references for MicroBuild.Core and Microsoft.SourceLink.GitHub.
@rmarinho rmarinho merged commit 11fad7f into dotnet:main Apr 30, 2026
7 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