Folders x64 and x86 are added within the bin folder and each contain libzstd.dll. But for some reason I keep getting error:
Exception has occurred: CLR/System.DllNotFoundException
An exception of type 'System.DllNotFoundException' occurred in Zstandard.Net.dll but was not handled in user code: 'Unable to load DLL 'libzstd' or one of its dependencies: The specified module could not be found. (Exception from HRESULT: 0x8007007E)'
class Extensions {
public static byte[] Compress(byte[] data)
{
using (var memoryStream = new MemoryStream())
using (var compressionStream = new ZstandardStream(memoryStream, CompressionMode.Compress))
{
compressionStream.Write(data, 0, data.Length);
compressionStream.Close();
return memoryStream.ToArray();
}
}
}
Zstandard.Net 1.1.7 .net core 2.2
Folders x64 and x86 are added within the bin folder and each contain libzstd.dll. But for some reason I keep getting error: