elucidsoft / dotnet-stellar-sdk

Stellar API SDK for .NET 6.x
Apache License 2.0
116 stars 54 forks source link

DllNotFoundException: Unable to load DLL 'libsodium' #262

Closed gudako closed 4 years ago

gudako commented 4 years ago

Installed the SDK from NuGet to my .netstandard 2.0 C# library. In Visual Studio 2019.

However, when I run any code in this SDK it throws runtime exception:

System.PlatformNotSupportedException: 'Could not initialize platform-specific components. NSec may not be supported on this platform. See https://nsec.rocks/docs/install for more information.'

Inner Exception DllNotFoundException: Unable to load DLL 'libsodium': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

How to make it work?

gudako commented 4 years ago

Resolved by adding the libsodium.dll extracted from its NuGet package along