Repository navigation
Target NuGet libraries at .NET 10 - #7657
Merged
Merged
Conversation
Replace the net8.0 library target with net10.0 and move per-TFM API baselines accordingly. Co-authored-by: Copilot App <[email protected]> Copilot-Session: baa86aab-4a9f-44c7-a92e-34f6498c9e4e
nkolev92
previously approved these changes
Aug 26, 2026
zivkan
previously approved these changes
Aug 26, 2026
Nigusu-Allehu
previously approved these changes
Aug 26, 2026
Co-authored-by: Copilot App <[email protected]> Copilot-Session: baa86aab-4a9f-44c7-a92e-34f6498c9e4e
eerhardt
dismissed stale reviews from Nigusu-Allehu, zivkan, and nkolev92
via
August 26, 2026 23:01
3cc0ef0
Nigusu-Allehu
previously approved these changes
Aug 26, 2026
Co-authored-by: Copilot App <[email protected]> Copilot-Session: baa86aab-4a9f-44c7-a92e-34f6498c9e4e
kartheekp-ms
approved these changes
Aug 26, 2026
Nigusu-Allehu
approved these changes
Aug 26, 2026
zivkan
approved these changes
Aug 27, 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#15062
Description
Replace the
net8.0target withnet10.0for NuGet client class libraries. NuGet.Protocol uses a System.Text.Json source-generated context for plugin messages, and the .NET 10 source generator no longer references the types of[JsonIgnore]properties. Compiling against .NET 10 therefore avoids rooting ignoredJObjectcompatibility properties and their associated Newtonsoft.Json Native AOT graph.This changes the shared library target frameworks from
net472;net8.0tonet472;net10.0and moves per-TFM PublicAPI baselines accordingly.Validation:
TargetFrameworksLibraryfornet10.0.dotnet format whitespace --verify-no-changes NuGet.sln.lib/net472/NuGet.Protocol.dllandlib/net10.0/NuGet.Protocol.dll.net10.0libraries from Aspire CLI Native AOT analysis and confirmed the ignored-property/JValue retention chain is removed.PR Checklist