Skip to content

Do not reference System.Text.Json for .NET 8+ #4019

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

database64128
Copy link

#3933 mistakenly removed the target framework condition for STJ. Referencing the STJ package on .NET 8+ causes the STJ source generator to run twice, resulting in build errors. See dotnet/wpf#8943.

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

Build errors for projects referencing ReactiveUI and using STJ source generation at the same time.

What is the new behavior?

No build errors.

What might this PR break?

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Other information:

reactiveui#3933 mistakenly removed the target framework condition for STJ. Referencing the STJ package on .NET 8+ causes the STJ source generator to run twice, resulting in build errors. See dotnet/wpf#8943.
Copy link

codecov bot commented Apr 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.27%. Comparing base (d75f999) to head (a607f0f).
Report is 194 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4019      +/-   ##
==========================================
+ Coverage   59.03%   63.27%   +4.23%     
==========================================
  Files         160      137      -23     
  Lines        5847     5193     -654     
  Branches     1031      785     -246     
==========================================
- Hits         3452     3286     -166     
+ Misses       2007     1702     -305     
+ Partials      388      205     -183     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

database64128 added a commit to database64128/youtube-dl-wpf that referenced this pull request Apr 24, 2025
Revert this once reactiveui/ReactiveUI#4019 is merged and out in a release.
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.

1 participant