masroore / CurlSharp

CurlSharp - .Net binding and object-oriented wrapper for libcurl.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NativeMethods problem

TigerZZ opened this issue · comments

Please ignore the Chinese message.

I'v tried 0.5.0 and 0.5.1 with Visual Studio 2017. And it works great.
But with the 2017/08/10 build... Error occurred at NativeMethods.

System.TypeInitializationException: 'CurlSharp.NativeMethods' 的類型初始設定式發生例外狀況。 ---> System.DllNotFoundException: 無法載入 DLL 'api-ms-win-core-sysinfo-l1-2-0.dll': 找不到指定的模組。 (發生例外狀況於 HRESULT: 0x8007007E)
於 Interop.mincore.GetNativeSystemInfo(SYSTEM_INFO& lpSystemInfo)
於 System.Runtime.InteropServices.RuntimeInformation.get_OSArchitecture()
於 CurlSharp.NativeMethods..cctor()
--- 內部例外狀況堆疊追蹤的結尾 ---