Skip to content

ProcessFrameworkReferences should add NativeAOT targeting packs for download for all passed in RIDs, not just RuntimeIdentifier #50093

@jkoritzinsky

Description

@jkoritzinsky

Today, ProcessFrameworkReferences only adds the runtime pack for NativeAOT for the RID specified in RuntimeIdentifier. This causes issues when using dotnet restore -r <rid>, as that sets RuntimeIdentifiers, not RuntimeIdentifier. As a result, dotnet restore doesn't restore the NativeAOT runtime pack and then dotnet publish --no-restore -r <rid> will fail in an obscure fashion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions