{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/CodeContracts/issues/53","labels_url":"https://api.github.com/repos/Microsoft/CodeContracts/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/CodeContracts/issues/53/comments","events_url":"https://api.github.com/repos/Microsoft/CodeContracts/issues/53/events","html_url":"https://github.com/Microsoft/CodeContracts/issues/53","id":79197113,"number":53,"title":"ILMerge does not generate body of methods with delegates/lambda compiled by roslyn.","user":{"login":"hubuk","id":11485931,"avatar_url":"https://avatars.githubusercontent.com/u/11485931?v=3","gravatar_id":"","url":"https://api.github.com/users/hubuk","html_url":"https://github.com/hubuk","followers_url":"https://api.github.com/users/hubuk/followers","following_url":"https://api.github.com/users/hubuk/following{/other_user}","gists_url":"https://api.github.com/users/hubuk/gists{/gist_id}","starred_url":"https://api.github.com/users/hubuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hubuk/subscriptions","organizations_url":"https://api.github.com/users/hubuk/orgs","repos_url":"https://api.github.com/users/hubuk/repos","events_url":"https://api.github.com/users/hubuk/events{/privacy}","received_events_url":"https://api.github.com/users/hubuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-05-21T23:08:39Z","updated_at":"2015-06-15T20:28:22Z","closed_at":null,"body":"ccrewriter compiled under VS2015 fails on startup with the following error:\r\nUnhandled Exception: System.TypeLoadException: Could not load type 'Microsoft.Contracts.Foxtrot.Driver.Program' from assembly 'ccrewrite, Version=1.8.10107.11, Culture=neutral, PublicKeyToken=188286aac86319f9' because the method 'InternalMain' has no implementation (no RVA).\r\n\r\nIt turns out that this is the case for all the method with delegate/lambda in body and only for assemblies produced by roslyn. Much worse scnario is for void returning methods as the loader do not raise an exception for them.\r\n\r\nThere are few ways we can go:\r\n1. Get an updated version of ILMerge from Mr. @mike-barnett.\r\n2. Locate and replace all the delegate/lambda code in libraries used with ILMerge.\r\n3. Drop ILMerge usage."},"comment":{"url":"https://api.github.com/repos/Microsoft/CodeContracts/issues/comments/112198655","html_url":"https://github.com/Microsoft/CodeContracts/issues/53#issuecomment-112198655","issue_url":"https://api.github.com/repos/Microsoft/CodeContracts/issues/53","id":112198655,"user":{"login":"hubuk","id":11485931,"avatar_url":"https://avatars.githubusercontent.com/u/11485931?v=3","gravatar_id":"","url":"https://api.github.com/users/hubuk","html_url":"https://github.com/hubuk","followers_url":"https://api.github.com/users/hubuk/followers","following_url":"https://api.github.com/users/hubuk/following{/other_user}","gists_url":"https://api.github.com/users/hubuk/gists{/gist_id}","starred_url":"https://api.github.com/users/hubuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hubuk/subscriptions","organizations_url":"https://api.github.com/users/hubuk/orgs","repos_url":"https://api.github.com/users/hubuk/repos","events_url":"https://api.github.com/users/hubuk/events{/privacy}","received_events_url":"https://api.github.com/users/hubuk/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T20:28:22Z","updated_at":"2015-06-15T20:28:22Z","body":"Reopened pull request #60."}}