Skip to content

Generate diagnostic for explicitly AnyCPU NETFramework app with native dependencies #843

@nguerrera

Description

@nguerrera

If you explicitly say PlatformTarget=AnyCPU but take dependencies on native assets from netframework app, nothing will be resolved as native-copy-local and the app is likely to fail. We should at least warn in this case:

Complication: We have to pass RIDs to restore to reason about native assets from project.assets.json. AnyCPU would imply that we're concerned if there are native assets for any RID, but that would bloat project.assets.json and slow down restore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions