{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/4998","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/4998/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/4998/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/4998/events","html_url":"https://github.com/dotnet/cli/issues/4998","id":194824889,"number":4998,"title":"Targeting Linux from Windows","user":{"login":"inwenis","id":4012487,"avatar_url":"https://avatars.githubusercontent.com/u/4012487?v=3","gravatar_id":"","url":"https://api.github.com/users/inwenis","html_url":"https://github.com/inwenis","followers_url":"https://api.github.com/users/inwenis/followers","following_url":"https://api.github.com/users/inwenis/following{/other_user}","gists_url":"https://api.github.com/users/inwenis/gists{/gist_id}","starred_url":"https://api.github.com/users/inwenis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inwenis/subscriptions","organizations_url":"https://api.github.com/users/inwenis/orgs","repos_url":"https://api.github.com/users/inwenis/repos","events_url":"https://api.github.com/users/inwenis/events{/privacy}","received_events_url":"https://api.github.com/users/inwenis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-11T10:39:52Z","updated_at":"2016-12-12T14:34:30Z","closed_at":null,"body":"## Steps to reproduce\r\nmkdir crossCIssue\r\ncd crossCIssue\r\ndotnet new\r\nremove \"type\": \"platform\" from project.json\r\nadd \"runtimes\": { \"ubuntu.16.04-x64\": {} } in project.json\r\ndotnet restore\r\ndotnet build -r ubuntu.16.04-x64\r\ndotnet publish -c release -r ubuntu.16.04-x64\r\nmove files to clean Ubuntu 16.04 machine\r\nrun ./crossCIssue.exe\r\n\r\n## Expected  behavior\r\n./crossCIssue.exe should run\r\n\r\n## Actual behavior\r\nbash: ./crossCIssue.exe: cannot execute binary file: Exec format error\r\n\r\n## Environment data\r\n`dotnet --info` output:\r\n.NET Command Line Tools (1.0.0-preview2-1-003177)\r\n\r\nProduct Information:\r\n Version:            1.0.0-preview2-1-003177\r\n Commit SHA-1 hash:  a2df9c2576\r\n\r\nRuntime Environment:\r\n OS Name:     Windows\r\n OS Version:  10.0.14393\r\n OS Platform: Windows\r\n RID:         win10-x64\r\n\r\n## Checking the file format\r\nfile ./crossCIssue.exe on Ubuntu:\r\ndotnetCross2.exe: PE32+ executable (console) x86-64, for MS Windows"},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/266445630","html_url":"https://github.com/dotnet/cli/issues/4998#issuecomment-266445630","issue_url":"https://api.github.com/repos/dotnet/cli/issues/4998","id":266445630,"user":{"login":"dasMulli","id":6129250,"avatar_url":"https://avatars.githubusercontent.com/u/6129250?v=3","gravatar_id":"","url":"https://api.github.com/users/dasMulli","html_url":"https://github.com/dasMulli","followers_url":"https://api.github.com/users/dasMulli/followers","following_url":"https://api.github.com/users/dasMulli/following{/other_user}","gists_url":"https://api.github.com/users/dasMulli/gists{/gist_id}","starred_url":"https://api.github.com/users/dasMulli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dasMulli/subscriptions","organizations_url":"https://api.github.com/users/dasMulli/orgs","repos_url":"https://api.github.com/users/dasMulli/repos","events_url":"https://api.github.com/users/dasMulli/events{/privacy}","received_events_url":"https://api.github.com/users/dasMulli/received_events","type":"User","site_admin":false},"created_at":"2016-12-12T14:34:30Z","updated_at":"2016-12-12T14:34:30Z","body":"@inwenis \r\nSo that is a mixture of a bug/known issue and a limitation.. Cli copies a hosting binary there. If your development machen is the same runtime you develop for, this is what is can be run after a `dotnet build` for the runtime (you can specify multiple runtimes).\r\nIssue: https://github.com/dotnet/cli/issues/2343\r\nSo it allows you to build and run things fast without copying too much. The build output is very developer machine specific and not intended to be portable.. And because you can't run the linux/mac specific output/host on windows and can't just copy the folder because of local machine references, the \"wrong\" host being there doesn't really matter anyway. (So it can theoretically work in some scenarios but it may blow up). Only the produced dll/output will matter for publishing. And since the tooling is being moved to msbuild /  `.csrpoj`-files, this will stay unfixed."}}
{"actor":{"display_login":"dasMulli"}}