{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/corefx/issues/2768","labels_url":"https://api.github.com/repos/dotnet/corefx/issues/2768/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/corefx/issues/2768/comments","events_url":"https://api.github.com/repos/dotnet/corefx/issues/2768/events","html_url":"https://github.com/dotnet/corefx/issues/2768","id":100641782,"number":2768,"title":"Add bool Assembly.TryGetMetadata(out byte*, out int size) ","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},"labels":[{"url":"https://api.github.com/repos/dotnet/corefx/labels/System.Reflection","name":"System.Reflection","color":"d4c5f9"}],"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},"milestone":null,"comments":3,"created_at":"2015-08-12T21:41:13Z","updated_at":"2015-08-13T02:03:41Z","closed_at":null,"body":"This API is required by Roslyn scripting. Since Assembly.Location was removed there is currently no way for the compiler to load metadata for runtime assemblies.\r\n\r\nThe scenario is hosting Roslyn script engine in a DNX console app like so:\r\n\r\n```\r\npublic class Globals { public int x; public int y; }\r\n\r\npublic static void Main()\r\n{\r\n  var globals = new Globals() { x = 1, y = 2 };\r\n  var script = CSharpScript.Create(\"x + y\");  \r\n  Console.WriteLine(script.RunAsync(globals).Result);\r\n}\r\n```\r\n\r\nThe compiler needs to read metadata of the assembly that contains the type Globals."},"comment":{"url":"https://api.github.com/repos/dotnet/corefx/issues/comments/130507501","html_url":"https://github.com/dotnet/corefx/issues/2768#issuecomment-130507501","issue_url":"https://api.github.com/repos/dotnet/corefx/issues/2768","id":130507501,"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":"2015-08-13T02:03:41Z","updated_at":"2015-08-13T02:03:41Z","body":"@ManishJayaswal"}}