{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/490","labels_url":"https://api.github.com/repos/dotnet/cli/issues/490/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/490/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/490/events","html_url":"https://github.com/dotnet/cli/issues/490","id":121968398,"number":490,"title":"Loading dll with AssemblyLoadContext fails with dotnet cli","user":{"login":"joepeer","id":13875362,"avatar_url":"https://avatars.githubusercontent.com/u/13875362?v=3","gravatar_id":"","url":"https://api.github.com/users/joepeer","html_url":"https://github.com/joepeer","followers_url":"https://api.github.com/users/joepeer/followers","following_url":"https://api.github.com/users/joepeer/following{/other_user}","gists_url":"https://api.github.com/users/joepeer/gists{/gist_id}","starred_url":"https://api.github.com/users/joepeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joepeer/subscriptions","organizations_url":"https://api.github.com/users/joepeer/orgs","repos_url":"https://api.github.com/users/joepeer/repos","events_url":"https://api.github.com/users/joepeer/events{/privacy}","received_events_url":"https://api.github.com/users/joepeer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/cli/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"gkhanna79","id":9451457,"avatar_url":"https://avatars.githubusercontent.com/u/9451457?v=3","gravatar_id":"","url":"https://api.github.com/users/gkhanna79","html_url":"https://github.com/gkhanna79","followers_url":"https://api.github.com/users/gkhanna79/followers","following_url":"https://api.github.com/users/gkhanna79/following{/other_user}","gists_url":"https://api.github.com/users/gkhanna79/gists{/gist_id}","starred_url":"https://api.github.com/users/gkhanna79/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkhanna79/subscriptions","organizations_url":"https://api.github.com/users/gkhanna79/orgs","repos_url":"https://api.github.com/users/gkhanna79/repos","events_url":"https://api.github.com/users/gkhanna79/events{/privacy}","received_events_url":"https://api.github.com/users/gkhanna79/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dotnet/cli/milestones/3","html_url":"https://github.com/dotnet/cli/milestones/RC2-Feb","labels_url":"https://api.github.com/repos/dotnet/cli/milestones/3/labels","id":1343748,"number":3,"title":"RC2-Feb","description":"","creator":{"login":"Sridhar-MS","id":9423246,"avatar_url":"https://avatars.githubusercontent.com/u/9423246?v=3","gravatar_id":"","url":"https://api.github.com/users/Sridhar-MS","html_url":"https://github.com/Sridhar-MS","followers_url":"https://api.github.com/users/Sridhar-MS/followers","following_url":"https://api.github.com/users/Sridhar-MS/following{/other_user}","gists_url":"https://api.github.com/users/Sridhar-MS/gists{/gist_id}","starred_url":"https://api.github.com/users/Sridhar-MS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sridhar-MS/subscriptions","organizations_url":"https://api.github.com/users/Sridhar-MS/orgs","repos_url":"https://api.github.com/users/Sridhar-MS/repos","events_url":"https://api.github.com/users/Sridhar-MS/events{/privacy}","received_events_url":"https://api.github.com/users/Sridhar-MS/received_events","type":"User","site_admin":false},"open_issues":91,"closed_issues":42,"state":"open","created_at":"2015-10-08T01:23:25Z","updated_at":"2016-01-21T01:26:49Z","due_on":"2016-02-19T08:00:00Z","closed_at":null},"comments":18,"created_at":"2015-12-14T03:31:45Z","updated_at":"2016-01-21T01:26:49Z","closed_at":"2016-01-21T01:26:49Z","body":"I'm trying to figure out how without the dotnet cli to dynamically load dll.  I would need to be able to load some kind of a plugin.  Something like [Issue 2095](https://github.com/dotnet/coreclr/issues/2095) is talking about.\r\n\r\nWith dnx I was able to subclass System.Runtime.Loader.AssemblyLoadContext and make things work.\r\nBut when I'm simply running my test app with the dotnet run, I end up with\r\n\r\n>Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Reflection, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.\r\n   at dnxtest.Program.Main(String[] args)\r\nAccess to the path 'testpluginload.dll' is denied.\r\n\r\nHere is my project.json\r\n>            \"dependencies\": {\r\n    \t\t\t\t\t\"System.Collections\": \"4.0.11-beta-23516\",\r\n\t\t\t\t\t\t\"System.Console\": \"4.0.0-beta-23516\",\r\n\t\t\t\t\t\t\"System.Linq\": \" 4.0.1-beta-23516\",\r\n\t\t\t\t\t\t\"System.Threading\": \" 4.0.11-beta-23516\",\r\n\t\t\t\t\t\t\"System.Net.Sockets\": \"4.1.0-beta-23516\",\r\n\t\t\t\t\t\t\"System.Runtime.Loader\": \"4.0.0-beta-23516\",\r\n\t\t\t\t\t\t\"System.Net.Primitives\": \"4.0.11-beta-23516\"\t\r\n            },\r\n\r\n\r\nI'm kinda of confused why its giving me this error only with the cli.\r\n\r\nWill this type of usage get covered by the cli or should I just stick up with dnx?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/173422095","html_url":"https://github.com/dotnet/cli/issues/490#issuecomment-173422095","issue_url":"https://api.github.com/repos/dotnet/cli/issues/490","id":173422095,"user":{"login":"gkhanna79","id":9451457,"avatar_url":"https://avatars.githubusercontent.com/u/9451457?v=3","gravatar_id":"","url":"https://api.github.com/users/gkhanna79","html_url":"https://github.com/gkhanna79","followers_url":"https://api.github.com/users/gkhanna79/followers","following_url":"https://api.github.com/users/gkhanna79/following{/other_user}","gists_url":"https://api.github.com/users/gkhanna79/gists{/gist_id}","starred_url":"https://api.github.com/users/gkhanna79/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkhanna79/subscriptions","organizations_url":"https://api.github.com/users/gkhanna79/orgs","repos_url":"https://api.github.com/users/gkhanna79/repos","events_url":"https://api.github.com/users/gkhanna79/events{/privacy}","received_events_url":"https://api.github.com/users/gkhanna79/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T01:26:49Z","updated_at":"2016-01-21T01:26:49Z","body":"I am closing this issue."}}