{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/11317","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/11317/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/11317/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/11317/events","html_url":"https://github.com/dotnet/roslyn/pull/11317","id":154906537,"number":11317,"title":"Fix a bug with command line args on Windows+Mono, fixes #11316","user":{"login":"AndreyAkinshin","id":2259237,"avatar_url":"https://avatars.githubusercontent.com/u/2259237?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreyAkinshin","html_url":"https://github.com/AndreyAkinshin","followers_url":"https://api.github.com/users/AndreyAkinshin/followers","following_url":"https://api.github.com/users/AndreyAkinshin/following{/other_user}","gists_url":"https://api.github.com/users/AndreyAkinshin/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreyAkinshin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreyAkinshin/subscriptions","organizations_url":"https://api.github.com/users/AndreyAkinshin/orgs","repos_url":"https://api.github.com/users/AndreyAkinshin/repos","events_url":"https://api.github.com/users/AndreyAkinshin/events{/privacy}","received_events_url":"https://api.github.com/users/AndreyAkinshin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/4%20-%20In%20Review","name":"4 - In Review","color":"CCCCCC"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-Compilers","name":"Area-Compilers","color":"5319e7"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/cla-already-signed","name":"cla-already-signed","color":"009800"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Community","name":"Community","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-15T12:36:06Z","updated_at":"2016-05-18T01:43:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/11317","html_url":"https://github.com/dotnet/roslyn/pull/11317","diff_url":"https://github.com/dotnet/roslyn/pull/11317.diff","patch_url":"https://github.com/dotnet/roslyn/pull/11317.patch"},"body":"We shouldn't invoke `GetCommandLineWindows` on Mono. Otherwise, arguments for `mono csc.exe Program.cs` will be equal to [`csc.exe`, `Program.cs`] instead of [`Program.cs`]. As a result, csc.exe will try to compile binary content of `csc.exe`. Original bug report: #11316."},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/219903259","html_url":"https://github.com/dotnet/roslyn/pull/11317#issuecomment-219903259","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/11317","id":219903259,"user":{"login":"tmat","id":41759,"avatar_url":"https://avatars.githubusercontent.com/u/41759?v=3","gravatar_id":"","url":"https://api.github.com/users/tmat","html_url":"https://github.com/tmat","followers_url":"https://api.github.com/users/tmat/followers","following_url":"https://api.github.com/users/tmat/following{/other_user}","gists_url":"https://api.github.com/users/tmat/gists{/gist_id}","starred_url":"https://api.github.com/users/tmat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmat/subscriptions","organizations_url":"https://api.github.com/users/tmat/orgs","repos_url":"https://api.github.com/users/tmat/repos","events_url":"https://api.github.com/users/tmat/events{/privacy}","received_events_url":"https://api.github.com/users/tmat/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T01:43:32Z","updated_at":"2016-05-18T01:43:32Z","body":"I don't think this is the right fix. We should imo still call GetCommandLineWindows when running on Mono on Windows to preserve the csc command line parsing behavior. Perhaps a better fix would be to skip arguments here https://github.com/dotnet/roslyn/pull/11317/commits/3e64d2b459d32ce03befe11118a437243b99ee4a#diff-8c6468fb136ab7175f40e617f6cccb42R235 until we find the name of the executable"}}