Repro
dotnet new
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