{"action":"created","issue":{"url":"https://api.github.com/repos/Fody/Costura/issues/104","labels_url":"https://api.github.com/repos/Fody/Costura/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/Fody/Costura/issues/104/comments","events_url":"https://api.github.com/repos/Fody/Costura/issues/104/events","html_url":"https://github.com/Fody/Costura/issues/104","id":56033460,"number":104,"title":"Costura fails to load library when extending class","user":{"login":"lukasholcik","id":6814085,"avatar_url":"https://avatars.githubusercontent.com/u/6814085?v=3","gravatar_id":"","url":"https://api.github.com/users/lukasholcik","html_url":"https://github.com/lukasholcik","followers_url":"https://api.github.com/users/lukasholcik/followers","following_url":"https://api.github.com/users/lukasholcik/following{/other_user}","gists_url":"https://api.github.com/users/lukasholcik/gists{/gist_id}","starred_url":"https://api.github.com/users/lukasholcik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukasholcik/subscriptions","organizations_url":"https://api.github.com/users/lukasholcik/orgs","repos_url":"https://api.github.com/users/lukasholcik/repos","events_url":"https://api.github.com/users/lukasholcik/events{/privacy}","received_events_url":"https://api.github.com/users/lukasholcik/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-30T13:31:48Z","updated_at":"2015-02-02T12:46:43Z","closed_at":"2015-02-02T12:46:43Z","body":"Hello folks,\r\nI have a case that makes Costura fail to find dependency when extending a class from an embedded library. Maybe I'm doing something wrong, but I already contacted the author of LibZ with the same issue, because LibZ can't make it either. \r\n\r\nI prepared a demo solution to demostrate this (.NET 3.5). It contains 3 projects\r\n1. Console app that runs Assembly.LoadFile on MainLibrary.dll\r\n2. MainLibrary - a project with one class that extends class from ReferencedLibrary.dll, which is embedded using Costura\r\n3. ReferencedLibrary\r\n\r\nMainClass (MainLibrary.dll) goes like this:\r\n<pre>\r\n    public class MainClass : ReferencedClass\r\n    {\r\n        public void SayHelloReference()\r\n        {\r\n            SayHello();\r\n        }\r\n    }\r\n</pre>\r\n\r\nReferencedClass (ReferencedLibrary.dll) goes like this\r\n<pre>\r\n    public class ReferencedClass\r\n    {\r\n        public void SayHello()\r\n        {\r\n            Console.WriteLine(\"Hello!\");\r\n        }\r\n    }\r\n</pre>\r\n\r\nConsole app goes like this:\r\n<pre>\r\nvar mainLibrary = Assembly.LoadFile(Directory.GetCurrentDirectory() + @\"\\MainLibrary.dll\");\r\nmainLibrary.GetTypes(); // KABOOOM!\r\n</pre>\r\n\r\nThe test project I created is here:\r\nhttps://dl.dropboxusercontent.com/u/36622208/Costura/Costura_DependencyFail.zip\r\n\r\nHope this helps to improve Costura.\r\nThanks a lot.\r\nLukas"},"comment":{"url":"https://api.github.com/repos/Fody/Costura/issues/comments/72452503","html_url":"https://github.com/Fody/Costura/issues/104#issuecomment-72452503","issue_url":"https://api.github.com/repos/Fody/Costura/issues/104","id":72452503,"user":{"login":"distantcam","id":1298847,"avatar_url":"https://avatars.githubusercontent.com/u/1298847?v=3","gravatar_id":"","url":"https://api.github.com/users/distantcam","html_url":"https://github.com/distantcam","followers_url":"https://api.github.com/users/distantcam/followers","following_url":"https://api.github.com/users/distantcam/following{/other_user}","gists_url":"https://api.github.com/users/distantcam/gists{/gist_id}","starred_url":"https://api.github.com/users/distantcam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/distantcam/subscriptions","organizations_url":"https://api.github.com/users/distantcam/orgs","repos_url":"https://api.github.com/users/distantcam/repos","events_url":"https://api.github.com/users/distantcam/events{/privacy}","received_events_url":"https://api.github.com/users/distantcam/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T12:46:43Z","updated_at":"2015-02-02T12:46:43Z","body":"Yeah, this is because the costura code is not being loaded from the MainLibrary.\r\n\r\nCostura isn't really supported for libraries. This is one of the reasons why. Sorry."}}