{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/dnvm/issues/428","labels_url":"https://api.github.com/repos/aspnet/dnvm/issues/428/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/dnvm/issues/428/comments","events_url":"https://api.github.com/repos/aspnet/dnvm/issues/428/events","html_url":"https://github.com/aspnet/dnvm/issues/428","id":105506106,"number":428,"title":"`dnvm run ...` and `dnvm exec` do not set exit code correctly","user":{"login":"dougbu","id":6431421,"avatar_url":"https://avatars.githubusercontent.com/u/6431421?v=3","gravatar_id":"","url":"https://api.github.com/users/dougbu","html_url":"https://github.com/dougbu","followers_url":"https://api.github.com/users/dougbu/followers","following_url":"https://api.github.com/users/dougbu/following{/other_user}","gists_url":"https://api.github.com/users/dougbu/gists{/gist_id}","starred_url":"https://api.github.com/users/dougbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougbu/subscriptions","organizations_url":"https://api.github.com/users/dougbu/orgs","repos_url":"https://api.github.com/users/dougbu/repos","events_url":"https://api.github.com/users/dougbu/events{/privacy}","received_events_url":"https://api.github.com/users/dougbu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/dnvm/labels/2%20-%20Working","name":"2 - Working","color":"CCCCCC"},{"url":"https://api.github.com/repos/aspnet/dnvm/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"BrennanConroy","id":7574801,"avatar_url":"https://avatars.githubusercontent.com/u/7574801?v=3","gravatar_id":"","url":"https://api.github.com/users/BrennanConroy","html_url":"https://github.com/BrennanConroy","followers_url":"https://api.github.com/users/BrennanConroy/followers","following_url":"https://api.github.com/users/BrennanConroy/following{/other_user}","gists_url":"https://api.github.com/users/BrennanConroy/gists{/gist_id}","starred_url":"https://api.github.com/users/BrennanConroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrennanConroy/subscriptions","organizations_url":"https://api.github.com/users/BrennanConroy/orgs","repos_url":"https://api.github.com/users/BrennanConroy/repos","events_url":"https://api.github.com/users/BrennanConroy/events{/privacy}","received_events_url":"https://api.github.com/users/BrennanConroy/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/aspnet/dnvm/milestones/10","html_url":"https://github.com/aspnet/dnvm/milestones/1.0.0-beta8","labels_url":"https://api.github.com/repos/aspnet/dnvm/milestones/10/labels","id":1242519,"number":10,"title":"1.0.0-beta8","description":null,"creator":{"login":"glennc","id":234688,"avatar_url":"https://avatars.githubusercontent.com/u/234688?v=3","gravatar_id":"","url":"https://api.github.com/users/glennc","html_url":"https://github.com/glennc","followers_url":"https://api.github.com/users/glennc/followers","following_url":"https://api.github.com/users/glennc/following{/other_user}","gists_url":"https://api.github.com/users/glennc/gists{/gist_id}","starred_url":"https://api.github.com/users/glennc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glennc/subscriptions","organizations_url":"https://api.github.com/users/glennc/orgs","repos_url":"https://api.github.com/users/glennc/repos","events_url":"https://api.github.com/users/glennc/events{/privacy}","received_events_url":"https://api.github.com/users/glennc/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":10,"state":"open","created_at":"2015-08-05T18:01:04Z","updated_at":"2015-09-10T23:23:10Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-09-09T02:29:51Z","updated_at":"2015-09-10T23:23:10Z","closed_at":"2015-09-10T23:23:10Z","body":"`dnvm run` and `dnvm exec` do not pass a non-`0` exit code from `dnx` back to the shell. (Side note: This and the `_k-test.shade` / `_k.shade` approach means DNX Core tests on Windows can fail without ending the build.)\r\n\r\nRepro steps\r\n1. create a simple Console application that always fails\r\n2. `dnu restore`\r\n3. `dnx run`\r\n4. echo %ErrorLevel%`\r\n  - observe expected `1`\r\n5. `dnvm run default run` or `dnvm exec default dnx run`\r\n6. `echo %ErrorLevel%`\r\n  - observe *unexpected* `0`\r\n\r\nExample program\r\n``` c#\r\nnamespace ExitCode\r\n{\r\n    public class Program\r\n    {\r\n        public int Main(string[] args)\r\n        {\r\n            return 1;\r\n        }\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/aspnet/dnvm/issues/comments/139409907","html_url":"https://github.com/aspnet/dnvm/issues/428#issuecomment-139409907","issue_url":"https://api.github.com/repos/aspnet/dnvm/issues/428","id":139409907,"user":{"login":"BrennanConroy","id":7574801,"avatar_url":"https://avatars.githubusercontent.com/u/7574801?v=3","gravatar_id":"","url":"https://api.github.com/users/BrennanConroy","html_url":"https://github.com/BrennanConroy","followers_url":"https://api.github.com/users/BrennanConroy/followers","following_url":"https://api.github.com/users/BrennanConroy/following{/other_user}","gists_url":"https://api.github.com/users/BrennanConroy/gists{/gist_id}","starred_url":"https://api.github.com/users/BrennanConroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrennanConroy/subscriptions","organizations_url":"https://api.github.com/users/BrennanConroy/orgs","repos_url":"https://api.github.com/users/BrennanConroy/repos","events_url":"https://api.github.com/users/BrennanConroy/events{/privacy}","received_events_url":"https://api.github.com/users/BrennanConroy/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T23:23:10Z","updated_at":"2015-09-10T23:23:10Z","body":"4f0b0994091d934de8ea316d31c4a51a56c1932c"}}