{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/dnx/issues/2641","labels_url":"https://api.github.com/repos/aspnet/dnx/issues/2641/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/dnx/issues/2641/comments","events_url":"https://api.github.com/repos/aspnet/dnx/issues/2641/events","html_url":"https://github.com/aspnet/dnx/issues/2641","id":104984176,"number":2641,"title":"coreclr publish tries to access packages in user directory","user":{"login":"nicolasr75","id":3595142,"avatar_url":"https://avatars.githubusercontent.com/u/3595142?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolasr75","html_url":"https://github.com/nicolasr75","followers_url":"https://api.github.com/users/nicolasr75/followers","following_url":"https://api.github.com/users/nicolasr75/following{/other_user}","gists_url":"https://api.github.com/users/nicolasr75/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasr75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasr75/subscriptions","organizations_url":"https://api.github.com/users/nicolasr75/orgs","repos_url":"https://api.github.com/users/nicolasr75/repos","events_url":"https://api.github.com/users/nicolasr75/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasr75/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-04T23:02:29Z","updated_at":"2015-09-05T09:10:40Z","closed_at":null,"body":"I am having issues with using coreclr bundles published with Visual Studio (but probably the same with normal clr). When I have installed the runtime and all packages in {username}\\.dnx, I can start my published project with kestrel and web commands from the commandline. When I don't have installed packages in the users home directory it fails with \r\n\r\n\tSystem.IO.DirectoryNotFoundException: Das System kann den angegebenen Pfad nicht\r\n\t finden. (Exception from HRESULT: 0x80070003)\r\n\t   at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAss\r\n\temblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly)\r\n\r\n\t   at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String asse\r\n\tmblyPath)\r\n\t   at Microsoft.Dnx.Runtime.Loader.PackageAssemblyLoader.Load(AssemblyName assem\r\n\tblyName, IAssemblyLoadContext loadContext)\r\n\t   at Microsoft.Dnx.Host.LoaderContainer.Load(AssemblyName assemblyName)\r\n\t   at Microsoft.Dnx.Runtime.Loader.AssemblyLoaderCache.GetOrAdd(AssemblyName nam\r\n\te, Func`2 factory)\r\n\t   at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(AssemblyNam\r\n\te assemblyName)\r\n\t   at Microsoft.Dnx.ApplicationHost.DefaultHost.GetEntryPoint(String application\r\n     ...\r\n\r\nalthough the bundle contains all packages! I then noticed the file\r\n\r\n{publish-dir}\\approot\\src\\MyApp\\global.json\r\n\r\nwhich by default seems to contain:\r\n\r\n\"packages\": \"packages\"\r\n\r\nWhen I change this to the actual path of the packages directory in my bundle, calling kestrel/web works without any error:\r\n\r\n\"packages\": \"{publish-dir}\\approot\\packages\"\r\n\r\nDo I misunderstand something?\r\nI thought coreclr bundles should work self-contained on any system without global installation of packages?"},"comment":{"url":"https://api.github.com/repos/aspnet/dnx/issues/comments/137935268","html_url":"https://github.com/aspnet/dnx/issues/2641#issuecomment-137935268","issue_url":"https://api.github.com/repos/aspnet/dnx/issues/2641","id":137935268,"user":{"login":"nicolasr75","id":3595142,"avatar_url":"https://avatars.githubusercontent.com/u/3595142?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolasr75","html_url":"https://github.com/nicolasr75","followers_url":"https://api.github.com/users/nicolasr75/followers","following_url":"https://api.github.com/users/nicolasr75/following{/other_user}","gists_url":"https://api.github.com/users/nicolasr75/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasr75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasr75/subscriptions","organizations_url":"https://api.github.com/users/nicolasr75/orgs","repos_url":"https://api.github.com/users/nicolasr75/repos","events_url":"https://api.github.com/users/nicolasr75/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasr75/received_events","type":"User","site_admin":false},"created_at":"2015-09-05T09:10:40Z","updated_at":"2015-09-05T09:10:40Z","body":"There is one in MyApp/approot\r\n\r\n\t{\r\n\t  \"sdk\": {\r\n\t\t\"version\": \"1.0.0-beta8-15564\"\r\n\t  },\r\n\t  \"projects\": [\r\n\t\t\"src\"\r\n\t  ],\r\n\t  \"packages\": \"packages\"\r\n\t}\r\n\r\nand one in MyApp\\approot\\src\\MyApp\r\n\r\n\t{\r\n\t\t\"sdk\": {\r\n\t\t\t\"version\": \"1.0.0-beta8-15564\"\r\n\t\t},\r\n\t\t\"packages\": \"packages\"\r\n\t}\r\n\r\nWhen I change the latter one to\r\n\r\n{\r\n    \"sdk\": {\r\n        \"version\": \"1.0.0-beta8-15564\"\r\n    },\r\n\t\"packages\": \"C:\\\\Users\\\\Public\\\\Documents\\\\RSW\\\\Test\\\\MyApp\\\\approot\\\\packages\"\r\n}\r\n\r\nthe error is gone, although it then dies because of missing libuv but that's a different topic...\r\n"}}