无法从 OSX 上的 .NET CORE 上的程序集 System.Security 加载类型



我在OSX上的System.Security上遇到了问题。我正在使用Visual Studio for Mac,并且我使用我无法控制的dll制作了一个应用程序,以便与某些API进行通信。我收到一个奇怪的错误,我不知道如何解决。

Could not load type 'System.Security.Cryptography.Pkcs.SignedCms' from assembly 'System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

错误来自 DLL 内部。我正在使用dotnet core 2.0。我尝试从nuGet安装System.Security.Cryptography.Pkcs,但仍然一无所获。我能做些什么吗?

.Net

Core 不支持 .Net Core 2.0 中的 SignedCms:https://github.com/dotnet/corefx/issues/14197

它目前计划在.Net Core 2.1版本中发布,但这可能会改变。

相关内容

最新更新