-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Revert #80698 and obsolete JsonSerializerOptions.AddContext #84022
Revert #80698 and obsolete JsonSerializerOptions.AddContext #84022
Conversation
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis Issue Details
Fix #83280.
|
Added When you commit this breaking change:
Tagging @dotnet/compat for awareness of the breaking change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Can we hold off on merging this until dotnet/aspnetcore#47450 is merged to move ASP.NET off AddContext?
src/libraries/System.Text.Json/tests/System.Text.Json.Tests/System.Text.Json.Tests.csproj
Show resolved
Hide resolved
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerOptions.cs
Show resolved
Hide resolved
....Text.Json/tests/System.Text.Json.Tests/Serialization/MetadataTests/MetadataTests.Options.cs
Show resolved
Hide resolved
Holding until aspnetcore remove their dependency on AddContext. |
c3b4715
to
179c79d
Compare
@eiriktsarpalis - FYI dotnet/aspnetcore#47450 has been merged, so we no longer use AddContext in ASP.NET. |
Test failures are unrelated, merging away. |
Removing the breaking-change labels since they're not actually needed. This PR reverts an initial breaking change that was made to it and the method retains its original behavior only that it has now been obsoleted. |
Fix #83280.