Skip to content

"type": "platform" Dependencies represented as "type":"package" in lock file #2695

@brthor

Description

@brthor

Repro

  1. dotnet new
  2. dotnet restore

In the lock file:

"Microsoft.NETCore.App/1.0.0-rc2-3002563": {
        "type": "package",
        "dependencies": {

I'd expect:

"Microsoft.NETCore.App/1.0.0-rc2-3002563": {
        "type": "platform",
        "dependencies": {

In the cli, this is a meaningful difference.
The real issue is that restoring without "type":"platform" produces a different lockfile, but no way to determine (from the lock file) whether "type":"platform" is used. If a win10-x64 is present in the project.json, the "type": "platform" restored lock file will not list coreclr.dll as a native export, but the non "type": "platform" restored lock file will.

Find more discussion on the cli issue; https://github.com/dotnet/cli/issues/2760

Metadata

Metadata

Assignees

Labels

Type:DCRDesign Change Request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions