{"action":"opened","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/4341","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/4341/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/4341/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/4341/events","html_url":"https://github.com/dotnet/cli/issues/4341","id":181564233,"number":4341,"title":"Do we have to use “--configuration Linux” if want to build for Linux?","user":{"login":"jianyunt","id":10171679,"avatar_url":"https://avatars.githubusercontent.com/u/10171679?v=3","gravatar_id":"","url":"https://api.github.com/users/jianyunt","html_url":"https://github.com/jianyunt","followers_url":"https://api.github.com/users/jianyunt/followers","following_url":"https://api.github.com/users/jianyunt/following{/other_user}","gists_url":"https://api.github.com/users/jianyunt/gists{/gist_id}","starred_url":"https://api.github.com/users/jianyunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jianyunt/subscriptions","organizations_url":"https://api.github.com/users/jianyunt/orgs","repos_url":"https://api.github.com/users/jianyunt/repos","events_url":"https://api.github.com/users/jianyunt/events{/privacy}","received_events_url":"https://api.github.com/users/jianyunt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-07T01:24:55Z","updated_at":"2016-10-07T01:24:55Z","closed_at":null,"body":"We use dotnet build for our [OneGet project](oneget.org) for both coreclr and fullclr. Our code is C# based. \r\nOur goal is to use the donet coreclr build so that our binaries can be run on windows, Linux, Mac, etc.\r\n\r\nHowever we observed that :\r\n\r\nIf we want to build for Linux, we have to pass in --configuration Linux . The binaries generated then work well on Linux . For example,\r\n\r\ndotnet -v build –framework netstandard1.6--configuration Linux\r\n\r\nIf we build without passing in Linux,\r\n\r\ndotnet -v build –framework netstandard1.6\r\n\r\nWe have trouble to calling into some methods such as using powershel.Invoke().\r\n\r\nQuestion:\r\n\r\nAssuming we do not have build options for pre-compile process, is it true any app purely built on top up of CoreCRL should be able to run other Platform like Linux, Mac ?\r\n\r\nWhat sort of special things dotnet build do when a user passes in --configuration Linux?\r\n\r\nPer https://github.com/dotnet/buildtools/issues/1101, this may be the place I can get answer from. thx."}}
{"actor":{"display_login":"jianyunt"}}