Revert #80698 and obsolete JsonSerializerOptions.AddContext#84022
Revert #80698 and obsolete JsonSerializerOptions.AddContext#84022eiriktsarpalis merged 2 commits intodotnet:mainfrom
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. |
eerhardt
left a comment
There was a problem hiding this comment.
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
Outdated
Show resolved
Hide resolved
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerOptions.cs
Outdated
Show resolved
Hide resolved
....Text.Json/tests/System.Text.Json.Tests/Serialization/MetadataTests/MetadataTests.Options.cs
Outdated
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.