{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/2894","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/2894/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/2894/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/2894/events","html_url":"https://github.com/dotnet/cli/issues/2894","id":153140928,"number":2894,"title":"Need a warning/error if an application cannot be publish for the RID included in runtimes section","user":{"login":"moozzyk","id":1438884,"avatar_url":"https://avatars.githubusercontent.com/u/1438884?v=3","gravatar_id":"","url":"https://api.github.com/users/moozzyk","html_url":"https://github.com/moozzyk","followers_url":"https://api.github.com/users/moozzyk/followers","following_url":"https://api.github.com/users/moozzyk/following{/other_user}","gists_url":"https://api.github.com/users/moozzyk/gists{/gist_id}","starred_url":"https://api.github.com/users/moozzyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moozzyk/subscriptions","organizations_url":"https://api.github.com/users/moozzyk/orgs","repos_url":"https://api.github.com/users/moozzyk/repos","events_url":"https://api.github.com/users/moozzyk/events{/privacy}","received_events_url":"https://api.github.com/users/moozzyk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-04T23:46:57Z","updated_at":"2016-05-05T00:18:55Z","closed_at":null,"body":"## Steps to reproduce\r\nIf you use a general RID like this in the project.json file:\r\n\r\n```\r\n  \"runtimes\": { \r\n    \"ubuntu-x64\": {}\r\n  }\r\n```\r\n\r\nThen the application cannot be published or run. \r\n\r\n## Expected  behavior\r\nA warning or an error saying that the RID used in the runtimes section is not usable. \r\n\r\n## Actual behavior\r\n(Possibly) a technically correct yet completely useless from the user perspective message:\r\n\r\n```\r\ndotnet publish -r ubuntu-x64\r\n\r\nFailed to make the following project runnable: HelloMvc (.NETCoreApp,Version=v1.0) reason: Expected coreclr library not found in package graph. Please try running dotnet restore again.\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-002655)\r\n\r\nProduct Information:\r\n Version:     1.0.0-rc2-002655\r\n Commit Sha:  3e96a05f9c\r\n\r\nRuntime Environment:\r\n OS Name:     Windows\r\n OS Version:  10.0.10586\r\n OS Platform: Windows\r\n RID:         win10-x64\r\n```\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/217045370","html_url":"https://github.com/dotnet/cli/issues/2894#issuecomment-217045370","issue_url":"https://api.github.com/repos/dotnet/cli/issues/2894","id":217045370,"user":{"login":"brthor","id":14280892,"avatar_url":"https://avatars.githubusercontent.com/u/14280892?v=3","gravatar_id":"","url":"https://api.github.com/users/brthor","html_url":"https://github.com/brthor","followers_url":"https://api.github.com/users/brthor/followers","following_url":"https://api.github.com/users/brthor/following{/other_user}","gists_url":"https://api.github.com/users/brthor/gists{/gist_id}","starred_url":"https://api.github.com/users/brthor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brthor/subscriptions","organizations_url":"https://api.github.com/users/brthor/orgs","repos_url":"https://api.github.com/users/brthor/repos","events_url":"https://api.github.com/users/brthor/events{/privacy}","received_events_url":"https://api.github.com/users/brthor/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T00:18:55Z","updated_at":"2016-05-05T00:18:55Z","body":"From #2890\r\n\r\nThe issue here is that ubuntu-x64 is not necessarily a \"wrong\" rid and indeed individual packages can create their own custom rid graphs using runtime.json. So at restore time, there's not necessarily a way to say that your rid is wrong.\r\n\r\nEven at build/publish time the best we can do for a Standalone app is make sure that whatever package graph exists for the rid you've selected contains coreclr.dll or it's xplat equivalent. If, for example, you had a package which declared that ubuntu-x64 imported ubuntu14.04-x64 (ordering might be backwards) then this should work just fine with ubuntu-x64.\r\n\r\nWe could change the error provided to provide a better experience:\r\n\"Expected coreclr library not found in package graph. Please check that you are using a compatible RID try running dotnet restore again.\"\r\n"}}