{"action":"created","issue":{"url":"https://api.github.com/repos/MiloszKrajewski/LibZ/issues/28","repository_url":"https://api.github.com/repos/MiloszKrajewski/LibZ","labels_url":"https://api.github.com/repos/MiloszKrajewski/LibZ/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/MiloszKrajewski/LibZ/issues/28/comments","events_url":"https://api.github.com/repos/MiloszKrajewski/LibZ/issues/28/events","html_url":"https://github.com/MiloszKrajewski/LibZ/issues/28","id":376861859,"node_id":"MDU6SXNzdWUzNzY4NjE4NTk=","number":28,"title":"Compilation error in a project that reference  merged exe ","user":{"login":"moh-hassan","id":16975310,"node_id":"MDQ6VXNlcjE2OTc1MzEw","avatar_url":"https://avatars3.githubusercontent.com/u/16975310?v=4","gravatar_id":"","url":"https://api.github.com/users/moh-hassan","html_url":"https://github.com/moh-hassan","followers_url":"https://api.github.com/users/moh-hassan/followers","following_url":"https://api.github.com/users/moh-hassan/following{/other_user}","gists_url":"https://api.github.com/users/moh-hassan/gists{/gist_id}","starred_url":"https://api.github.com/users/moh-hassan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moh-hassan/subscriptions","organizations_url":"https://api.github.com/users/moh-hassan/orgs","repos_url":"https://api.github.com/users/moh-hassan/repos","events_url":"https://api.github.com/users/moh-hassan/events{/privacy}","received_events_url":"https://api.github.com/users/moh-hassan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-02T15:39:16Z","updated_at":"2018-11-04T21:20:19Z","closed_at":null,"author_association":"NONE","body":"I merged exe application with its dll dependencies using the command\r\n\r\n\t\tlibz.exe inject-dll --assembly $(OutputAssembly)  --include $(OutputPath)\\*.dll --move\"\r\n\r\nwhen I tried to use the merged exe as a reference for a class library  project which have all types/ interface, vs 2017 fire an exception\r\n\r\n>System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.\r\n   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)\r\n   at System.Reflection.RuntimeModule.GetTypes()\r\n   at System.Reflection.Assembly.GetTypes()\r\n   at OData2Poco.PlugInHelper.LoadPlugin[T](String foldr)\r\nLoader Exception: System.TypeLoadException: Type 'Mylib.MyKey' from assembly 'PluginDemo, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' is attempting to implement an inaccessible interface.\r\nLoader Exception: System.TypeLoadException: Type 'Mylib.MyRequired' from assembly 'PluginDemo, Version=3.0.0.0, Culture=neutr\r\nal, PublicKeyToken=null' is attempting to implement an inaccessible interface.\r\n\r\nHow to resolve this exception? \r\nIt seems that all types in the merged exe are inaccessible for the compiler.\r\n"},"comment":{"url":"https://api.github.com/repos/MiloszKrajewski/LibZ/issues/comments/435708064","html_url":"https://github.com/MiloszKrajewski/LibZ/issues/28#issuecomment-435708064","issue_url":"https://api.github.com/repos/MiloszKrajewski/LibZ/issues/28","id":435708064,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTcwODA2NA==","user":{"login":"moh-hassan","id":16975310,"node_id":"MDQ6VXNlcjE2OTc1MzEw","avatar_url":"https://avatars3.githubusercontent.com/u/16975310?v=4","gravatar_id":"","url":"https://api.github.com/users/moh-hassan","html_url":"https://github.com/moh-hassan","followers_url":"https://api.github.com/users/moh-hassan/followers","following_url":"https://api.github.com/users/moh-hassan/following{/other_user}","gists_url":"https://api.github.com/users/moh-hassan/gists{/gist_id}","starred_url":"https://api.github.com/users/moh-hassan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moh-hassan/subscriptions","organizations_url":"https://api.github.com/users/moh-hassan/orgs","repos_url":"https://api.github.com/users/moh-hassan/repos","events_url":"https://api.github.com/users/moh-hassan/events{/privacy}","received_events_url":"https://api.github.com/users/moh-hassan/received_events","type":"User","site_admin":false},"created_at":"2018-11-04T21:20:19Z","updated_at":"2018-11-04T21:20:19Z","author_association":"NONE","body":"It's a good approach. \r\nI will try to review [lz4net  ](https://github.com/MiloszKrajewski/lz4net) to find out your approach.\r\nKindly, It's a nice  if you can provide a wiki for how to build a proxy for merged dll assemblies.\r\nThe proxy  may be automated tool :) \r\nReally, your Libz.tool helped me to load external dll plugin at runtime whose dependencies are in the merged console.exe application.\r\n"}}
{"actor":{"display_login":"moh-hassan"}}