Repository navigation
Add NuGetFrameworkStjConverter - #7357
Merged
Merged
Conversation
Nigusu-Allehu
force-pushed
the
dev-nyenework-stj-nuget-framework-converter
branch
from
May 6, 2026 22:34
5516dc6 to
27a7a28
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a System.Text.Json converter for NuGetFramework as part of the Newtonsoft.Json (NSJ) → System.Text.Json (STJ) migration in NuGet.Protocol, along with parity-focused tests against the existing NSJ converter.
Changes:
- Introduces
NuGetFrameworkStjConverterto deserializeNuGetFrameworkfrom JSON scalar tokens. - Adds unit tests validating STJ behavior and comparing results with the NSJ
NuGetFrameworkConverter.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/NuGet.Core/NuGet.Protocol/Converters/NuGetFrameworkStjConverter.cs | Adds the STJ converter implementation for reading/writing NuGetFramework. |
| test/NuGet.Core.Tests/NuGet.Protocol.Tests/Converters/NuGetFrameworkStjConverterTests.cs | Adds coverage to validate scalar-token handling and error behavior. |
Contributor
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
nkolev92
previously approved these changes
May 7, 2026
jeffkl
reviewed
May 7, 2026
jeffkl
approved these changes
May 8, 2026
This was referenced May 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Fixes: NuGet/Home#14880
Description
This is a focused slice of #7301, split per-converter to make reviewing easier.
Converters are being migrated first so that the upcoming Registration resource migrations don't become
bloated PRs.
NuGetFrameworkStjConverterdeserializesNuGetFrameworkfrom JSON scalar tokens maintaining full behavioral parity with the NSJNuGetFrameworkConverter.PR Checklist