{"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,"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":280,"closed_issues":91,"state":"open","created_at":"2015-11-02T19:50:04Z","updated_at":"2016-04-27T22:54:06Z","due_on":"2016-06-30T07:00:00Z","closed_at":null},"comments":7,"created_at":"2016-04-18T23:55:37Z","updated_at":"2016-04-27T22:58:51Z","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/215257881","html_url":"https://github.com/dotnet/cli/issues/2578#issuecomment-215257881","issue_url":"https://api.github.com/repos/dotnet/cli/issues/2578","id":215257881,"user":{"login":"hal-ler","id":9846496,"avatar_url":"https://avatars.githubusercontent.com/u/9846496?v=3","gravatar_id":"","url":"https://api.github.com/users/hal-ler","html_url":"https://github.com/hal-ler","followers_url":"https://api.github.com/users/hal-ler/followers","following_url":"https://api.github.com/users/hal-ler/following{/other_user}","gists_url":"https://api.github.com/users/hal-ler/gists{/gist_id}","starred_url":"https://api.github.com/users/hal-ler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hal-ler/subscriptions","organizations_url":"https://api.github.com/users/hal-ler/orgs","repos_url":"https://api.github.com/users/hal-ler/repos","events_url":"https://api.github.com/users/hal-ler/events{/privacy}","received_events_url":"https://api.github.com/users/hal-ler/received_events","type":"User","site_admin":false},"created_at":"2016-04-27T22:58:51Z","updated_at":"2016-04-27T22:58:51Z","body":"Developer tools are another scenario where both shared platform and standalone builds are desirable in my view. For example your build system might rely on NuGet, ScriptCs and some other tools. Instead of downloading a 20MB standalone version for all of these (with replicated copies of all platform libraries), one would first install the SDK (as it is needed for the build) and just download the shared platform versions of these tools. However the standalone versions of these tools are also preferred to exist in the wild for other applications."}}