Skip to content

Missing version in framework reference leads to misleading error #3743

@vitek-karas

Description

@vitek-karas

New console app with framework reference to Microsoft.NETCore.App, remove the version property from .runtimeconfig.json, run the app:

Fails with:

It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App' was not found.
  - The following frameworks were found:
    <list of frameworks on the machine>

Running this on a Debug build causes an assert in fx_resolver.

We should explicitly check for this and fail with a meaningful error message. It's not valid to have a framework reference without version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Hostbughelp wanted[up-for-grabs] Good issue for external contributorsin-prThere is an active PR which will close this issue when it is merged

    Type

    No type

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions