{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/dnx/issues/1861","labels_url":"https://api.github.com/repos/aspnet/dnx/issues/1861/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/dnx/issues/1861/comments","events_url":"https://api.github.com/repos/aspnet/dnx/issues/1861/events","html_url":"https://github.com/aspnet/dnx/issues/1861","id":76106028,"number":1861,"title":"Can't get hello world console app running on Ubuntu, CoreCLR latest","user":{"login":"rkeithhill","id":5177512,"avatar_url":"https://avatars.githubusercontent.com/u/5177512?v=3","gravatar_id":"","url":"https://api.github.com/users/rkeithhill","html_url":"https://github.com/rkeithhill","followers_url":"https://api.github.com/users/rkeithhill/followers","following_url":"https://api.github.com/users/rkeithhill/following{/other_user}","gists_url":"https://api.github.com/users/rkeithhill/gists{/gist_id}","starred_url":"https://api.github.com/users/rkeithhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkeithhill/subscriptions","organizations_url":"https://api.github.com/users/rkeithhill/orgs","repos_url":"https://api.github.com/users/rkeithhill/repos","events_url":"https://api.github.com/users/rkeithhill/events{/privacy}","received_events_url":"https://api.github.com/users/rkeithhill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-13T20:03:38Z","updated_at":"2015-05-15T21:58:33Z","closed_at":null,"body":"I should be able to get this simple little console app to run on Linux, right?\r\n\r\n```c#\r\npublic class App {\r\n    public static void Main() {\r\n        System.Console.WriteLine(\"Hello World\");\r\n    }\r\n}\r\n```\r\nwith this project.json file:\r\n```json\r\n{\r\n  \"version\": \"1.0.0-*\",\r\n  \"dependencies\": {},\r\n  \"frameworks\": {\r\n    \"dnxcore50\": {\r\n      \"dependencies\": {\r\n        \"System.Console\": \"4.0.0-*\"\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\nI'm running version 1.0.0-beta5-11760 coreclr x64 (that's my default alias).  I have installed mono-complete so that I can run dnu restore which works.  It pulls down System.Console 4.0.0-beta-22911.  However when I switch back to 1.0.0-beta5-11760 coreclr x64, and execute dnx . run from my project.json folder I get this error:\r\n\r\n```\r\nSystem.InvalidOperationException: Failed to resolve the following dependencies for target framework 'DNXCore, Version=v5.0':\r\n    System.Console 4.0.0\r\n\r\nSearch Locations:\r\n  /home/hillr/src/{name}/project.json\r\n\r\nTry running 'dnu restore'.\r\n\r\n  at Microsoft.Framework.Runtime.DefaultHost.GetEntryPoint(String applicationName)\r\n  ...\r\n```\r\n\r\nI managed to get this same project running on Windows 10 with .NET CoreClr.  \r\n\r\nBTW where is corerun and how do you use it.  I saw Habib use this in his session at Build but I don't see this file anywhere in the .dnx folder or perhaps I'm just using find/grep wrong. :-)\r\n"},"comment":{"url":"https://api.github.com/repos/aspnet/dnx/issues/comments/102534501","html_url":"https://github.com/aspnet/dnx/issues/1861#issuecomment-102534501","issue_url":"https://api.github.com/repos/aspnet/dnx/issues/1861","id":102534501,"user":{"login":"rkeithhill","id":5177512,"avatar_url":"https://avatars.githubusercontent.com/u/5177512?v=3","gravatar_id":"","url":"https://api.github.com/users/rkeithhill","html_url":"https://github.com/rkeithhill","followers_url":"https://api.github.com/users/rkeithhill/followers","following_url":"https://api.github.com/users/rkeithhill/following{/other_user}","gists_url":"https://api.github.com/users/rkeithhill/gists{/gist_id}","starred_url":"https://api.github.com/users/rkeithhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkeithhill/subscriptions","organizations_url":"https://api.github.com/users/rkeithhill/orgs","repos_url":"https://api.github.com/users/rkeithhill/repos","events_url":"https://api.github.com/users/rkeithhill/events{/privacy}","received_events_url":"https://api.github.com/users/rkeithhill/received_events","type":"User","site_admin":false},"created_at":"2015-05-15T21:58:33Z","updated_at":"2015-05-15T21:58:33Z","body":"OK got libssl-dev installed and I no longer get the libcrpto errors.  However now I get:\r\n\r\n'hello' does not contain a static 'Main' method suitable for an entry point\r\n\r\nI suspect my program.cs file is not being found and consequently not compiled.  Do I need to specify cs files in the project.json file?  I tried \"code\": \"**/*.cs\", but that didnt' help.\r\n"}}