{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Home/issues/1223","labels_url":"https://api.github.com/repos/aspnet/Home/issues/1223/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Home/issues/1223/comments","events_url":"https://api.github.com/repos/aspnet/Home/issues/1223/events","html_url":"https://github.com/aspnet/Home/issues/1223","id":125761244,"number":1223,"title":"Published app 'root' package in `ILibraryManager.GetReferencingLibraries()`","user":{"login":"henkmollema","id":1521207,"avatar_url":"https://avatars.githubusercontent.com/u/1521207?v=3","gravatar_id":"","url":"https://api.github.com/users/henkmollema","html_url":"https://github.com/henkmollema","followers_url":"https://api.github.com/users/henkmollema/followers","following_url":"https://api.github.com/users/henkmollema/following{/other_user}","gists_url":"https://api.github.com/users/henkmollema/gists{/gist_id}","starred_url":"https://api.github.com/users/henkmollema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henkmollema/subscriptions","organizations_url":"https://api.github.com/users/henkmollema/orgs","repos_url":"https://api.github.com/users/henkmollema/repos","events_url":"https://api.github.com/users/henkmollema/events{/privacy}","received_events_url":"https://api.github.com/users/henkmollema/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-09T14:20:35Z","updated_at":"2016-01-09T16:46:22Z","closed_at":"2016-01-09T16:46:22Z","body":"When I publish an app and compile it to NuGet packages, it creates a folder **'root'**:\r\n```\r\napproot\\packages\\ConsoleApp2\\1.0.0\\root\\\r\n```\r\n\r\nThis causes the `ILibraryManager.GetReferencingLibraries()` to resolve a project called 'root' and it tries to load it. Which in turn fails with this exception: \r\n> Could not load file or assembly **'root'** or one of its dependencies. General Exception (Exception from HRESULT: 0x80131500)\r\n\r\nDNX version: 1.0.0-rc1-update1\r\n\r\nRepro:\r\nhttps://github.com/henkmollema/AssemblyLoadRootRepro\r\n\r\n1. Clone repo (`git clone https://github.com/henkmollema/AssemblyLoadRootRepro.git`)\r\n2. `cd AssemblyLoadRootRepro`\r\n3. `dnu publish -o c:\\publish --no-source`\r\n4. `cd c:\\publish\\approot`\r\n5. `ConsoleApp2.cmd`\r\n6. :boom:\r\n\r\nIs this expected behavior?\r\n"},"comment":{"url":"https://api.github.com/repos/aspnet/Home/issues/comments/170258979","html_url":"https://github.com/aspnet/Home/issues/1223#issuecomment-170258979","issue_url":"https://api.github.com/repos/aspnet/Home/issues/1223","id":170258979,"user":{"login":"henkmollema","id":1521207,"avatar_url":"https://avatars.githubusercontent.com/u/1521207?v=3","gravatar_id":"","url":"https://api.github.com/users/henkmollema","html_url":"https://github.com/henkmollema","followers_url":"https://api.github.com/users/henkmollema/followers","following_url":"https://api.github.com/users/henkmollema/following{/other_user}","gists_url":"https://api.github.com/users/henkmollema/gists{/gist_id}","starred_url":"https://api.github.com/users/henkmollema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henkmollema/subscriptions","organizations_url":"https://api.github.com/users/henkmollema/orgs","repos_url":"https://api.github.com/users/henkmollema/repos","events_url":"https://api.github.com/users/henkmollema/events{/privacy}","received_events_url":"https://api.github.com/users/henkmollema/received_events","type":"User","site_admin":false},"created_at":"2016-01-09T16:46:22Z","updated_at":"2016-01-09T16:46:22Z","body":"That seems to work, thanks! :+1:\r\n\r\nFor reference, an implementation example:\r\n```csharp\r\npublic IEnumerable<Assembly> GetLoadedAssemblies()\r\n{\r\n    return _libraryManager.GetReferencingLibraries(\"SomeCoreAssembly\")\r\n                            .SelectMany(info => info.Assemblies)\r\n                            .Select(info => Assembly.Load(new AssemblyName(info.Name)));\r\n}\r\n```"}}