且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法在visual studio 2015中引用libsodium.dll

更新时间:2023-02-27 11:18:55

仔细检查DLL - 错误基本上是这不是程序集,这意味着它是一个本机DLL。

你不能引用本机DLL ,只有.NET一个也有帮助的程序集如果文件带有DLL扩展名。

必须通过PInvoke访问本机文件。
Check the DLL carefully - the error is basically saying "this isn't an Assembly" which means it's a native DLL instead.
You can't reference a native DLL, only .NET an assemblies which are also helps if files with a DLL extension.
Native files have to be accessed via PInvoke instead.