{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/2578","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/2578/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/2578/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/2578/events","html_url":"https://github.com/dotnet/cli/issues/2578","id":149304996,"number":2578,"title":"Bad error message if Microsoft.NETCore.App isn't a \"platform\" in the project.json","user":{"login":"onovotny","id":1427284,"avatar_url":"https://avatars.githubusercontent.com/u/1427284?v=3","gravatar_id":"","url":"https://api.github.com/users/onovotny","html_url":"https://github.com/onovotny","followers_url":"https://api.github.com/users/onovotny/followers","following_url":"https://api.github.com/users/onovotny/following{/other_user}","gists_url":"https://api.github.com/users/onovotny/gists{/gist_id}","starred_url":"https://api.github.com/users/onovotny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onovotny/subscriptions","organizations_url":"https://api.github.com/users/onovotny/orgs","repos_url":"https://api.github.com/users/onovotny/repos","events_url":"https://api.github.com/users/onovotny/events{/privacy}","received_events_url":"https://api.github.com/users/onovotny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/dotnet/cli/milestones/5","html_url":"https://github.com/dotnet/cli/milestones/1.0.0-rtm","labels_url":"https://api.github.com/repos/dotnet/cli/milestones/5/labels","id":1389772,"number":5,"title":"1.0.0-rtm","description":"2016 (https://github.com/aspnet/Home/wiki/Roadmap)","creator":{"login":"Petermarcu","id":8228359,"avatar_url":"https://avatars.githubusercontent.com/u/8228359?v=3","gravatar_id":"","url":"https://api.github.com/users/Petermarcu","html_url":"https://github.com/Petermarcu","followers_url":"https://api.github.com/users/Petermarcu/followers","following_url":"https://api.github.com/users/Petermarcu/following{/other_user}","gists_url":"https://api.github.com/users/Petermarcu/gists{/gist_id}","starred_url":"https://api.github.com/users/Petermarcu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Petermarcu/subscriptions","organizations_url":"https://api.github.com/users/Petermarcu/orgs","repos_url":"https://api.github.com/users/Petermarcu/repos","events_url":"https://api.github.com/users/Petermarcu/events{/privacy}","received_events_url":"https://api.github.com/users/Petermarcu/received_events","type":"User","site_admin":false},"open_issues":255,"closed_issues":262,"state":"open","created_at":"2015-11-02T19:50:04Z","updated_at":"2016-08-18T23:53:47Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2016-04-18T23:55:37Z","updated_at":"2016-09-19T04:10:57Z","closed_at":null,"body":"## Steps to reproduce\r\nCreate a new project/exe that uses the netcoreapp1.0 framework.\r\n\r\nAdd a dependency \"Microsoft.NETCore.App\":\"1.0.0-rc2-24015\"\r\n\r\n## Expected  behavior\r\nA better error saying that the type needs to be a platform. The entry should be \r\n\"Microsoft.NETCore.App\": {\r\n                    \"version\": \"1.0.0-rc2-24015\",\r\n                    \"type\": \"platform\"\r\n                }\r\nAnd that fixes the error correctly.\r\n\r\n## Actual behavior\r\nErrors that suggest putting in RID's\r\n```\r\nSeverity\tCode\tDescription\tProject\tFile\tLine\tSuppression State\r\nError\t\tCan not find runtime target for framework '.NETCoreApp,Version=v1.0' compatible with one of the target runtimes: 'win10-x64, win81-x64, win8-x64, win7-x64'. Possible causes:\tDapper.Tests\tC:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v14.0\\DotNet\\Microsoft.DotNet.Common.Targets\t241\t\r\nError\t\t1. The project has not been restored or restore failed - run `dotnet restore`\tDapper.Tests\tC:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v14.0\\DotNet\\Microsoft.DotNet.Common.Targets\t241\t\r\nError\t\t2. The project does not list one of 'win10-x64, win81-x64, win8-x64, win7-x64' in the 'runtimes' section.\tDapper.Tests\tC:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v14.0\\DotNet\\Microsoft.DotNet.Common.Targets\t241\t\r\n```\r\n\r\n## Environment data\r\n`dotnet --info` output:\r\n\r\n\r\n.NET Command Line Tools (1.0.0-rc2-002418)\r\n\r\nProduct Information:\r\n Version:     1.0.0-rc2-002418\r\n Commit Sha:  a8686e58fc\r\n\r\nRuntime Environment:\r\n OS Name:     Windows\r\n OS Version:  10.0.14316\r\n OS Platform: Windows\r\n RID:         win10-x64\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/247908554","html_url":"https://github.com/dotnet/cli/issues/2578#issuecomment-247908554","issue_url":"https://api.github.com/repos/dotnet/cli/issues/2578","id":247908554,"user":{"login":"iberodev","id":5520769,"avatar_url":"https://avatars.githubusercontent.com/u/5520769?v=3","gravatar_id":"","url":"https://api.github.com/users/iberodev","html_url":"https://github.com/iberodev","followers_url":"https://api.github.com/users/iberodev/followers","following_url":"https://api.github.com/users/iberodev/following{/other_user}","gists_url":"https://api.github.com/users/iberodev/gists{/gist_id}","starred_url":"https://api.github.com/users/iberodev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iberodev/subscriptions","organizations_url":"https://api.github.com/users/iberodev/orgs","repos_url":"https://api.github.com/users/iberodev/repos","events_url":"https://api.github.com/users/iberodev/events{/privacy}","received_events_url":"https://api.github.com/users/iberodev/received_events","type":"User","site_admin":false},"created_at":"2016-09-19T04:10:57Z","updated_at":"2016-09-19T04:10:57Z","body":"As per [this documentation](https://github.com/blackdwarf/core-docs/blob/clidocs/docs/core-concepts/app-types.md)\r\n\r\n> The type: platform property on that dependency means that at publish time, the tooling will skip publishing the assemblies for that dependency to the published output. You don't need these since they will be installed with .NET Core on the targeted machine. \r\n\r\nI am getting this error when trying to deploy for first time a web app with `\"version\": \"1.0.0-preview2-003131\"` in `global.json` and\r\n```\r\n\"Microsoft.NETCore.App\": {\r\n      \"version\": \"1.0.1\",\r\n      \"type\": \"platform\"\r\n    }\r\n```\r\nin `project.json`\r\n\r\nAm I to assume that this version 1.0.1 is not installed in Team Services host?"}}
{"actor":{"display_login":"iberodev"}}