{"action":"reopened","issue":{"url":"https://api.github.com/repos/dotnet/sdk/issues/698","repository_url":"https://api.github.com/repos/dotnet/sdk","labels_url":"https://api.github.com/repos/dotnet/sdk/issues/698/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/sdk/issues/698/comments","events_url":"https://api.github.com/repos/dotnet/sdk/issues/698/events","html_url":"https://github.com/dotnet/sdk/issues/698","id":202073865,"number":698,"title":"platform bitness mismatch with self-contained publish RID will compile/publish but will fail to run","user":{"login":"piotrpMSFT","id":2379589,"avatar_url":"https://avatars.githubusercontent.com/u/2379589?v=3","gravatar_id":"","url":"https://api.github.com/users/piotrpMSFT","html_url":"https://github.com/piotrpMSFT","followers_url":"https://api.github.com/users/piotrpMSFT/followers","following_url":"https://api.github.com/users/piotrpMSFT/following{/other_user}","gists_url":"https://api.github.com/users/piotrpMSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/piotrpMSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piotrpMSFT/subscriptions","organizations_url":"https://api.github.com/users/piotrpMSFT/orgs","repos_url":"https://api.github.com/users/piotrpMSFT/repos","events_url":"https://api.github.com/users/piotrpMSFT/events{/privacy}","received_events_url":"https://api.github.com/users/piotrpMSFT/received_events","type":"User","site_admin":false},"labels":[{"id":412731487,"url":"https://api.github.com/repos/dotnet/sdk/labels/Bug","name":"Bug","color":"ee0701","default":false}],"state":"open","locked":false,"assignee":{"login":"nguerrera","id":75470,"avatar_url":"https://avatars.githubusercontent.com/u/75470?v=3","gravatar_id":"","url":"https://api.github.com/users/nguerrera","html_url":"https://github.com/nguerrera","followers_url":"https://api.github.com/users/nguerrera/followers","following_url":"https://api.github.com/users/nguerrera/following{/other_user}","gists_url":"https://api.github.com/users/nguerrera/gists{/gist_id}","starred_url":"https://api.github.com/users/nguerrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguerrera/subscriptions","organizations_url":"https://api.github.com/users/nguerrera/orgs","repos_url":"https://api.github.com/users/nguerrera/repos","events_url":"https://api.github.com/users/nguerrera/events{/privacy}","received_events_url":"https://api.github.com/users/nguerrera/received_events","type":"User","site_admin":false},"assignees":[{"login":"nguerrera","id":75470,"avatar_url":"https://avatars.githubusercontent.com/u/75470?v=3","gravatar_id":"","url":"https://api.github.com/users/nguerrera","html_url":"https://github.com/nguerrera","followers_url":"https://api.github.com/users/nguerrera/followers","following_url":"https://api.github.com/users/nguerrera/following{/other_user}","gists_url":"https://api.github.com/users/nguerrera/gists{/gist_id}","starred_url":"https://api.github.com/users/nguerrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguerrera/subscriptions","organizations_url":"https://api.github.com/users/nguerrera/orgs","repos_url":"https://api.github.com/users/nguerrera/repos","events_url":"https://api.github.com/users/nguerrera/events{/privacy}","received_events_url":"https://api.github.com/users/nguerrera/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/dotnet/sdk/milestones/3","html_url":"https://github.com/dotnet/sdk/milestone/3","labels_url":"https://api.github.com/repos/dotnet/sdk/milestones/3/labels","id":2010183,"number":3,"title":"1.0 RTM","description":"","creator":{"login":"srivatsn","id":20570,"avatar_url":"https://avatars.githubusercontent.com/u/20570?v=3","gravatar_id":"","url":"https://api.github.com/users/srivatsn","html_url":"https://github.com/srivatsn","followers_url":"https://api.github.com/users/srivatsn/followers","following_url":"https://api.github.com/users/srivatsn/following{/other_user}","gists_url":"https://api.github.com/users/srivatsn/gists{/gist_id}","starred_url":"https://api.github.com/users/srivatsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srivatsn/subscriptions","organizations_url":"https://api.github.com/users/srivatsn/orgs","repos_url":"https://api.github.com/users/srivatsn/repos","events_url":"https://api.github.com/users/srivatsn/events{/privacy}","received_events_url":"https://api.github.com/users/srivatsn/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":50,"state":"open","created_at":"2016-09-16T21:39:01Z","updated_at":"2017-02-03T20:50:32Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2017-01-20T07:43:44Z","updated_at":"2017-02-03T20:50:32Z","closed_at":null,"body":"Moved from https://github.com/dotnet/cli/issues/2922 on behalf of @guardrex\r\n\r\n----\r\n\r\n@blackdwarf Yes, it's still there with MSBuild. The setup is like this ...\r\n\r\n```xml\r\n<PropertyGroup>\r\n  <TargetFramework>netcoreapp1.2</TargetFramework>\r\n  <OutputType>Exe</OutputType>\r\n  <RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>\r\n  <PlatformTarget>x86</PlatformTarget>\r\n</PropertyGroup>\r\n```\r\nIt will compile without any indication of a problem using `dotnet publish -r win10-x64` ...\r\n\r\n![capture](https://cloud.githubusercontent.com/assets/1622880/22138730/b364e37c-dea7-11e6-95ac-70a6d0de0a77.PNG)\r\nWhen you try to run the app, it :boom: with ...\r\n```\r\nUnhandled Exception: System.BadImageFormatException: Could not load file or assembly \r\n'testselfcontained.dll'. An attempt was made to load a program with an incorrect format.\r\n```"}}
{"actor":{"display_login":"nguerrera"}}