{"action":"created","issue":{"url":"https://api.github.com/repos/gluck/il-repack/issues/151","repository_url":"https://api.github.com/repos/gluck/il-repack","labels_url":"https://api.github.com/repos/gluck/il-repack/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/gluck/il-repack/issues/151/comments","events_url":"https://api.github.com/repos/gluck/il-repack/issues/151/events","html_url":"https://github.com/gluck/il-repack/issues/151","id":139247451,"number":151,"title":"Unable to merge xamarin application.","user":{"login":"zakjut","id":17142696,"avatar_url":"https://avatars.githubusercontent.com/u/17142696?v=3","gravatar_id":"","url":"https://api.github.com/users/zakjut","html_url":"https://github.com/zakjut","followers_url":"https://api.github.com/users/zakjut/followers","following_url":"https://api.github.com/users/zakjut/following{/other_user}","gists_url":"https://api.github.com/users/zakjut/gists{/gist_id}","starred_url":"https://api.github.com/users/zakjut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zakjut/subscriptions","organizations_url":"https://api.github.com/users/zakjut/orgs","repos_url":"https://api.github.com/users/zakjut/repos","events_url":"https://api.github.com/users/zakjut/events{/privacy}","received_events_url":"https://api.github.com/users/zakjut/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-08T11:02:12Z","updated_at":"2016-03-08T11:39:12Z","closed_at":null,"body":"I apologize if I am doing something silly, this is the first time I am trying to use a tool like ILRepack or ILMerge. I have created a service \"app\" with xamarin in vs2015 that I am going to use in several other applications. The issue is that this service app contains references to two external libraries. Since I want to have a single point of contact for my other apps using this service I figured I might be able to merge these libs into my own. I am using the ILRepack version found n NuGet and the following post build command.\r\n\r\n    if $(ConfigurationName) == Release (\r\n        cd \"$(TargetDir)\"\r\n        ren \"$(TargetName).dll\" \"$(TargetName).premerge.dll\"\r\n        \"$(SolutionDir)\\packages\\ILRepack.2.0.10\\tools\\ILRepack.exe\" /verbose /internalize /out:\"$(TargetFileName)\" \"$(TargetName).premerge.dll\" \"a.dll\" \"b.dll\"\r\n    )\r\n\r\nHowever, the build fails with the following error: \r\n\r\n    Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'\r\n    1>     at Mono.Cecil.BaseAssemblyResolver.Resolve(AssemblyNameReference name, ReaderParameters parameters)\r\n    1>     at Mono.Cecil.DefaultAssemblyResolver.Resolve(AssemblyNameReference name)\r\n    1>     at Mono.Cecil.MetadataResolver.Resolve(TypeReference type)\r\n    1>     at Mono.Cecil.TypeReference.Resolve()\r\n    1>     at ILRepacking.ReferenceFixator.FixReferences(Collection`1 attributes)\r\n    1>     at ILRepacking.ReferenceFixator.FixReferences(MethodDefinition meth)\r\n    1>     at ILRepacking.ReferenceFixator.FixReferences(TypeDefinition type)\r\n    1>     at ILRepacking.ReferenceFixator.FixReferences(TypeDefinition type)\r\n    1>     at ILRepacking.Steps.ReferencesFixStep.Perform()\r\n    1>     at ILRepacking.ILRepack.Repack()\r\n    1>     at ILRepacking.Application.Main(String[] args)\r\n\r\nBefore spending more hours trying to tear my hair at this I figured I might ask if ILRepack even works for xamarin applications first?"},"comment":{"url":"https://api.github.com/repos/gluck/il-repack/issues/comments/193743593","html_url":"https://github.com/gluck/il-repack/issues/151#issuecomment-193743593","issue_url":"https://api.github.com/repos/gluck/il-repack/issues/151","id":193743593,"user":{"login":"zakjut","id":17142696,"avatar_url":"https://avatars.githubusercontent.com/u/17142696?v=3","gravatar_id":"","url":"https://api.github.com/users/zakjut","html_url":"https://github.com/zakjut","followers_url":"https://api.github.com/users/zakjut/followers","following_url":"https://api.github.com/users/zakjut/following{/other_user}","gists_url":"https://api.github.com/users/zakjut/gists{/gist_id}","starred_url":"https://api.github.com/users/zakjut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zakjut/subscriptions","organizations_url":"https://api.github.com/users/zakjut/orgs","repos_url":"https://api.github.com/users/zakjut/repos","events_url":"https://api.github.com/users/zakjut/events{/privacy}","received_events_url":"https://api.github.com/users/zakjut/received_events","type":"User","site_admin":false},"created_at":"2016-03-08T11:39:12Z","updated_at":"2016-03-08T11:39:12Z","body":"Hmm, I am unable to use the repacked .dll however.\r\n\r\nWhen including it in a project and starting the service contained within, a bunch of classes tries to use the .dlls that I repacked into the main .dll. Leading to a bunch of \"package does not exist\" errors.\r\n\r\nThe service works as it should before repacking but when trying to use the repacked file from another application it is unable to actually use the .dlls contained within. Is there some special convention I need to follow when using referenced libraries that are later repacked? \r\n\r\n\r\n\r\n"}}