{"action":"created","issue":{"url":"https://api.github.com/repos/mono/website/issues/199","repository_url":"https://api.github.com/repos/mono/website","labels_url":"https://api.github.com/repos/mono/website/issues/199/labels{/name}","comments_url":"https://api.github.com/repos/mono/website/issues/199/comments","events_url":"https://api.github.com/repos/mono/website/issues/199/events","html_url":"https://github.com/mono/website/issues/199","id":148367895,"number":199,"title":"Mention Windows Bash?","user":{"login":"minxomat","id":8023543,"avatar_url":"https://avatars.githubusercontent.com/u/8023543?v=3","gravatar_id":"","url":"https://api.github.com/users/minxomat","html_url":"https://github.com/minxomat","followers_url":"https://api.github.com/users/minxomat/followers","following_url":"https://api.github.com/users/minxomat/following{/other_user}","gists_url":"https://api.github.com/users/minxomat/gists{/gist_id}","starred_url":"https://api.github.com/users/minxomat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minxomat/subscriptions","organizations_url":"https://api.github.com/users/minxomat/orgs","repos_url":"https://api.github.com/users/minxomat/repos","events_url":"https://api.github.com/users/minxomat/events{/privacy}","received_events_url":"https://api.github.com/users/minxomat/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mono/website/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-04-14T13:51:12Z","updated_at":"2016-08-05T21:27:24Z","closed_at":"2016-04-14T14:21:34Z","body":"Windows 10 recently received Bash. This is made possible through a Ubuntu subsystem, which means commands executed in bash (bash.exe instead of cmd.exe) will run in the Ubuntu context. Since APT is enabled, Mono installation works.\r\n\r\nI tested this on Windows 10 Enterprise (non-LTSB), Build 14316.1. These are the commands I used:\r\n\r\n### Installing Mono\r\n\r\n```sh\r\nsudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF\r\n```\r\n\r\nWorks as expected, no warnings/errors.\r\n\r\n```sh\r\nsudo sh -c 'echo \"deb http://download.mono-project.com/repo/debian wheezy main\">>/etc/apt/sources.list.d/mono-xamarin.list;apt-get -qq update;apt-get -qq install git gcc mono-complete'\r\n```\r\n\r\nNo warnings / errors. Known issues:\r\n\r\n- APT likes to get stuck in Windows Bash (`waiting for headers`). Rerunning the command will fix this.\r\n- APT complains about systemd et al. This can be safely ignored.\r\n\r\nBoth these issues are unrelated to Mono and don't have any impact on Mono or it's components as far as I can tell.\r\n\r\n### Testing\r\n\r\nAs a trivial test, I compile [Turbo](https://github.com/turbo) from source. This will test Mono, XBuild and mkbundle:\r\n\r\n```sh\r\nsudo sh -c \"git clone http://github.com/turbo/src;cd src;xbuild *.sln /v:q;cp *.dll /usr/lib/;mkbundle -o /usr/bin/turbo *.exe;cd ..\"\r\n```\r\n\r\nCompiles fine:\r\n\r\n```sh\r\nXBuild Engine Version 12.0\r\nMono, Version 4.2.3.0\r\nCopyright (C) 2005-2013 Various Mono authors\r\n/usr/lib/mono/xbuild/12.0/bin/Microsoft.Common.targets:  warning : Reference 'System.ComponentModel.Composition.Registration' not resolved\r\nOS is: Linux\r\nSources: 1 Auto-dependencies: False\r\n   embedding: /root/src/turbo.exe\r\nCompiling:\r\nas -o temp.o temp.s\r\ncc -ggdb -o /usr/bin/turbo -Wall temp.c `pkg-config --cflags --libs mono-2`  temp.o\r\nDone\r\n```\r\n\r\nLet's run the tests:\r\n\r\n```sh\r\nroot@localhost:~# ls\r\nsrc\r\nroot@localhost:~# turbo src/Tests/tests.js -o ./foobar.exe\r\nWarning in file <src/Tests/tests.js> at (80,6): (TC1187) Variable might be uninitalized.\r\nWarning in file <src/Tests/tests.js> at (407,9): (TC1187) Variable might be uninitalized.\r\nroot@localhost:~# mono foobar.exe\r\n> Tests passed: 980/980\r\n> Tests failed: 0/980\r\n> Total time:   309 ms\r\n```\r\n\r\nSplendid. Everything works as one would expect. The only thing that doesn't work (yet) is the binfmt integration, i.e. `mono foobar.exe` will succeed, but `./foobar.exe` will fail. This contradicts the default behavior in Ubuntu, but IMO this is a minor issue.\r\n\r\n### Adding a hint\r\n\r\nMy suggestion: Adding a hint somewhere, either on the install page for Windows or Linux that Mono also works in Windows Bash.\r\n\r\nPersonally, I find this to be quite exciting, as one can now have Mono running *both* natively on Windows *and* in the Ubuntu subsystem."},"comment":{"url":"https://api.github.com/repos/mono/website/issues/comments/237970294","html_url":"https://github.com/mono/website/issues/199#issuecomment-237970294","issue_url":"https://api.github.com/repos/mono/website/issues/199","id":237970294,"user":{"login":"simonegli8","id":2488116,"avatar_url":"https://avatars.githubusercontent.com/u/2488116?v=3","gravatar_id":"","url":"https://api.github.com/users/simonegli8","html_url":"https://github.com/simonegli8","followers_url":"https://api.github.com/users/simonegli8/followers","following_url":"https://api.github.com/users/simonegli8/following{/other_user}","gists_url":"https://api.github.com/users/simonegli8/gists{/gist_id}","starred_url":"https://api.github.com/users/simonegli8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonegli8/subscriptions","organizations_url":"https://api.github.com/users/simonegli8/orgs","repos_url":"https://api.github.com/users/simonegli8/repos","events_url":"https://api.github.com/users/simonegli8/events{/privacy}","received_events_url":"https://api.github.com/users/simonegli8/received_events","type":"User","site_admin":false},"created_at":"2016-08-05T21:27:24Z","updated_at":"2016-08-05T21:27:24Z","body":"You're right, it's not a mono error, I just wrote this here, because I was coming to this site when googling the error. I'm not behind a proxy, and this error happens on my machine on a fresh installed WSL. I don't get the error in my VirtualBox Ubuntu on the same machine. "}}
{"actor":{"display_login":"simonegli8"}}