Skip to content

runtime.json only works if PackageReference is directly referenced by project #2794

Open
@xen2

Description

@xen2

I have a a netcoreapp2.1 app with a PackageReference (let's call it MyPackageA) that contains a runtime.json.

It seems that if I don't include this MyPackageA PackageReference explicitly in the final executable project, its runtime.json is not properly used to compute the deps.json file (and it can't find/load some of the .dll).

What works:

  • Main executable project: PackageReference to MyPackageA in main executable project

What doesn't work:

  • Main executable project: PackageReference that references MyPackageA transitively
  • Library1: PackageReference to MyPackageA + Main executable: ProjectReference to Library1

This problem doesn't happen with net461 (libraries are properly copied by Visual Studio in all situations).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions