如果我从ASP.NET Core2Web应用程序中引用Portable.BouncyCastle,它能在Linux和MacOS上工作吗?我的ASP.NET Core2应用程序仍然是跨平台兼容的吗?
发布于 2019-05-20 10:57:09
不,它不是跨平台的。它使用了一些只在.Net Core for Windows中实现的类型,比如System.Security.Cryptography.CspParameters。请参阅https://github.com/novotnyllc/bc-csharp/issues/6
事实上,截至2020年1月25日,Portable.BouncyCastle still uses the RSACryptoServiceProvider(CspParameters) constructor,和.Net核心still has it stubbed out for non-Windows.
仅仅因为一些针对.Net标准的东西并不意味着它可以在非Windows OSes上工作。有许多.Net标准API的.Net核心实现只是抛出“未在此平台上实现”异常的存根。
https://stackoverflow.com/questions/51772736
复制相似问题