Add missing meta-packages and binary-free packages to PackageOverrides.txt#126751
Open
Add missing meta-packages and binary-free packages to PackageOverrides.txt#126751
Conversation
…s.txt Found by creating test projects targeting netcoreapp1.0, netcoreapp1.1, netstandard1.6, and netstandard2.0, restoring their full dependency graphs, and diffing against the existing list. Added packages (27 new entries): - Microsoft.NETCore.App, Microsoft.NETCore.Platforms, Microsoft.NETCore.Targets (meta-packages) - NETStandard.Library (meta-package) - Microsoft.NETCore.DotNetHost/Policy/Resolver (host meta-packages) - Microsoft.NETCore.Jit, Microsoft.NETCore.Runtime.CoreCLR, Microsoft.NETCore.Windows.ApiSets - runtime.native.System* (7 generic native root packages absent from existing list) - runtime.debian.9/fedora.27/fedora.28/opensuse.42.3/ubuntu.18.04 Security.Cryptography entries that were present for other platforms but missing for these Agent-Logs-Url: https://github.com/dotnet/runtime/sessions/aa0d8c04-16a2-4afe-9e11-477c8a8b0c6d Co-authored-by: ericstj <8918108+ericstj@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
ericstj
April 10, 2026 16:02
View session
ericstj
reviewed
Apr 10, 2026
Comment on lines
+3
to
+5
| Microsoft.NETCore.DotNetHostPolicy|8.0.25 | ||
| Microsoft.NETCore.DotNetHostResolver|8.0.25 | ||
| Microsoft.NETCore.DotNetHost|8.0.25 |
Member
There was a problem hiding this comment.
@jkoritzinsky I'm not sure it these make sense to include -- should they be pruned if they show up transitively in a new .NET 11+ project?
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the shared framework NuGet pruning inputs by expanding PackageOverrides.txt to include packages that don’t ship managed DLLs (meta-packages, RID-selector packages, and native-only packages) but still appear in restored dependency graphs for older TFMs.
Changes:
- Add missing meta-package entries (e.g.,
NETStandard.Library,Microsoft.NETCore.App, host meta-packages, RID-graph/targets packages). - Add generic
runtime.native.*root RID-selector packages (no managed DLLs). - Fill in missing distro-specific
System.Security.Cryptography*runtime-native package entries for additional Linux RIDs.
This was referenced Apr 10, 2026
Open
1 task
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.
PackageOverrides.txtdrives NuGet pruning data for the shared framework. The original list was derived from managed binaries in the framework, missing packages that shipped no managed DLLs — meta-packages, RID-selector packages, and native-only packages.Description
Found by restoring full dependency graphs for
netcoreapp1.0,netcoreapp1.1,netstandard1.6, andnetstandard2.0test projects and diffing every resolved package against the existing list. Adds 27 entries:Meta-packages (no binaries)
NETStandard.Library|2.0.3— the netstandard umbrella packageMicrosoft.NETCore.App|2.2.8— the netcoreapp 1.x/2.x umbrella packageMicrosoft.NETCore.Platforms|7.0.4— RID graph only (runtime.json)Microsoft.NETCore.Targets|5.0.0— TFM targets onlyMicrosoft.NETCore.Jit|2.0.8,Microsoft.NETCore.Runtime.CoreCLR|2.0.8,Microsoft.NETCore.Windows.ApiSets|1.0.1— RID-selector meta-packages for runtime componentsMicrosoft.NETCore.DotNetHost|8.0.25,Microsoft.NETCore.DotNetHostPolicy|8.0.25,Microsoft.NETCore.DotNetHostResolver|8.0.25— host distribution meta-packagesGeneric
runtime.native.*root packages (RID selectors; no managed DLLs)runtime.native.System,runtime.native.System.IO.Compression,runtime.native.System.Net.Http,runtime.native.System.Net.Security,runtime.native.System.Security.Cryptography,runtime.native.System.Security.Cryptography.Apple,runtime.native.System.Security.Cryptography.OpenSslMissing platform-specific Security.Cryptography entries (present for debian.8, fedora.23/24, opensuse.42.1; absent for newer distros added later)
debian.9,fedora.27,fedora.28,opensuse.42.3,ubuntu.18.04— bothSystem.Security.CryptographyandSystem.Security.Cryptography.OpenSslvariantsExcluded:
Libuv(internal .NET Core 1.x native dep, never public surface),Microsoft.CodeAnalysis.*,Microsoft.DiaSymReader.Native(not part of the shared framework).