Skip to content

Conversation

@baronfel
Copy link
Member

Fixes #50312

The any RID sits at the top of the RID graph and is compatible with all RIDs - which means in order to run it must get runtime-specific assets from all RIDs.

This change makes ResolvePackageAssets treat any like null for purposes of asking the NuGet Lockfile for target-specific assets. This makes the LockFile return the complete set of RID-specific assets for package dependencies.

@baronfel
Copy link
Member Author

Another potential solution here would be for NuGet's LockFileTarget and/or LockFile.GetTarget(NuGetFramework framework, string runtimeIdentifier) methods/types to become aware of the any == null concept, but the SDK is also perfectly happy to drive here for now and figure out the correct way later.

@baronfel baronfel requested a review from a team August 19, 2025 23:21
@baronfel baronfel added this to the 10.0.1xx milestone Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants