{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/2585","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/2585/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/2585/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/2585/events","html_url":"https://github.com/dotnet/cli/issues/2585","id":149575146,"number":2585,"title":"[Mac OS X] System.Net.Http.WinHttpHandler throwing FileNotFoundException for 'winhttp.dll'","user":{"login":"jeffschwMSFT","id":9561583,"avatar_url":"https://avatars.githubusercontent.com/u/9561583?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffschwMSFT","html_url":"https://github.com/jeffschwMSFT","followers_url":"https://api.github.com/users/jeffschwMSFT/followers","following_url":"https://api.github.com/users/jeffschwMSFT/following{/other_user}","gists_url":"https://api.github.com/users/jeffschwMSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffschwMSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffschwMSFT/subscriptions","organizations_url":"https://api.github.com/users/jeffschwMSFT/orgs","repos_url":"https://api.github.com/users/jeffschwMSFT/repos","events_url":"https://api.github.com/users/jeffschwMSFT/events{/privacy}","received_events_url":"https://api.github.com/users/jeffschwMSFT/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-19T20:30:07Z","updated_at":"2016-04-20T00:18:34Z","closed_at":null,"body":"Ported from: https://github.com/dotnet/corefx/issues/7835\r\n\r\nI have a portable application that has a reference to the beta version (I think that is the latest) of System.Net.Http.dll.\r\n\r\nproject.json\r\n {\r\n \"version\": \"1.0.0-\",\r\n \"compilationOptions\": {\r\n \"emitEntryPoint\": true\r\n },\r\n \"dependencies\": {\r\n \"Microsoft.NETCore.App\": {\r\n \"type\": \"platform\",\r\n \"version\": \"1.0.0-rc2-3002394\"\r\n },\r\n \"System.Net.Http\": \"4.0.0-beta-\"\r\n },\r\n \"frameworks\": {\r\n \"netcoreapp1.0\": {\r\n \"imports\" : [\"dnxcore50\", \"portable-net45+win8\"]\r\n }\r\n }\r\n }\r\n\r\nThe app restores and builds successfully. But when it is run it fails with the following:\r\n\r\nUnhandled Exception: System.DllNotFoundException: Unable to load DLL 'winhttp.dll': The specified module could not be found.\r\n (Exception from HRESULT: 0x8007007E)\r\n at System.Net.Http.Interop.WinHttpSetStatusCallback(SafeInternetHandle handle, WINHTTP_STATUS_CALLBACK callback, UInt32 notificationFlags, IntPtr reserved)\r\n at System.Net.Http.WinHttpHandler.SetStatusCallback(SafeInternetHandle requestHandle, WINHTTP_STATUS_CALLBACK callback)\r\n at System.Net.Http.WinHttpHandler.d__1.MoveNext()\r\n --- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__6_1(Object state)\r\n at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n at System.Threading.QueueUserWorkItemCallbackDefaultContext.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()\r\n at System.Threading.ThreadPoolWorkQueue.Dispatch()\r\n\r\nEven though System.Net.Http is in the sharedfx I was able to override with this version.  There are a few issues here, the largest is that I could fall off the golden path (use the sharedfx binaries) without an error. The secondary issue is how did I end up with a Windows version of this dll?\r\n\r\n\r\n\r\n\r\n[curl.tar.gz](https://github.com/dotnet/cli/files/226779/curl.tar.gz)\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/212181874","html_url":"https://github.com/dotnet/cli/issues/2585#issuecomment-212181874","issue_url":"https://api.github.com/repos/dotnet/cli/issues/2585","id":212181874,"user":{"login":"GuardRex","id":1622880,"avatar_url":"https://avatars.githubusercontent.com/u/1622880?v=3","gravatar_id":"","url":"https://api.github.com/users/GuardRex","html_url":"https://github.com/GuardRex","followers_url":"https://api.github.com/users/GuardRex/followers","following_url":"https://api.github.com/users/GuardRex/following{/other_user}","gists_url":"https://api.github.com/users/GuardRex/gists{/gist_id}","starred_url":"https://api.github.com/users/GuardRex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuardRex/subscriptions","organizations_url":"https://api.github.com/users/GuardRex/orgs","repos_url":"https://api.github.com/users/GuardRex/repos","events_url":"https://api.github.com/users/GuardRex/events{/privacy}","received_events_url":"https://api.github.com/users/GuardRex/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T00:18:34Z","updated_at":"2016-04-20T00:18:34Z","body":"@jeffschwMSFT Did this happen because the `imports` masked it being restored? ... when without the `imports` it does fail and state that the package is incompat?"}}