在CentOS上,安装了dnx-coreclr-linux-x64.1.0.0-beta8-15616,运行dnu restore时出现下面的错误:
System.TypeInitializationException: The type initializer for 'System.Net.Http.CurlHandler' threw an exception. ---> System.TypeInitializationException: The type initializer for 'libcurl' threw an exception. ---> System.TypeInitializationException: The type initializer for 'HttpInitializer' threw an exception. ---> System.TypeInitializationException: The type initializer for 'CryptoInitializer' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'System.Security.Cryptography.Native': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at Interop.CryptoInitializer.EnsureOpenSslInitialized()
追问:DNX Core 5.0 如何引用.net4.5标准类库的?
只能引用corefx
@博客园团队: 自己写了一些扩展,如何用上去呢