C# .NET核心中的SignedCms替代方案

C# .NET核心中的SignedCms替代方案,c#,.net-core,C#,.net Core,.NET Core中是否存在System.Security.Cryptography.Pkcs.SignedCms类的替代方案?还是像温特的案子一样,我必须深入研究BouncyCastle 不,目前在.NET Core中没有与SignedCms等效的版本 非常欢迎您在上创建一个问题,以表明这是您希望提交的类型。仅供参考。似乎可以通过以下NUGET包获得对SignedCms和其他S/MIME基本.NET类的支持: System.Security.Cryptography.Pkcs 也就是说,在我

.NET Core中是否存在System.Security.Cryptography.Pkcs.SignedCms类的替代方案?还是像温特的案子一样,我必须深入研究BouncyCastle

不,目前在.NET Core中没有与SignedCms等效的版本


非常欢迎您在上创建一个问题,以表明这是您希望提交的类型。

仅供参考。似乎可以通过以下
NUGET
包获得对SignedCms和其他S/MIME基本.NET类的支持:

System.Security.Cryptography.Pkcs
也就是说,在我将这个
NUGET
包添加到我的Visual Studio 2017(VS2017).NET核心项目之前,我收到了以下编译错误:

Severity    Code    Description Project File    Line    Suppression State
Error   CS0246  The type or namespace name 'CmsRecipientCollection' could not be found (are you missing a using directive or an assembly reference?)
Error   CS0246  The type or namespace name 'X509IssuerSerial' could not be found (are you missing a using directive or an assembly reference?)
Error   CS0246  The type or namespace name 'EnvelopedCms' could not be found (are you missing a using directive or an assembly reference?)
Error   CS0246  The type or namespace name 'SignedCms' could not be found (are you missing a using directive or an assembly reference?)
Error   CS0246  The type or namespace name 'SignerInfoCollection' could not be found (are you missing a using directive or an assembly reference?)
Error   CS0246  The type or namespace name 'ContentInfo' could not be found (are you missing a using directive or an assembly reference?)
Error   CS0246  The type or namespace name 'CmsRecipient' could not be found (are you missing a using directive or an assembly reference?)
Error   CS0246  The type or namespace name 'RecipientInfo' could not be found (are you missing a using directive or an assembly reference?)
Error   CS0103  The name 'SubjectIdentifierType' does not exist in the current context
Error   CS0246  The type or namespace name 'SignerInfo' could not be found (are you missing a using directive or an assembly reference?)
Error   CS1579  foreach statement cannot operate on variables of type 'SignerInfoCollection' because 'SignerInfoCollection' does not contain a public instance definition for 'GetEnumerator'
Error   CS0246  The type or namespace name 'CmsSigner' could not be found (are you missing a using directive or an assembly reference?)

在我添加了
NUGET
包之后,我可以成功编译。

为BouncyCastle体验做好准备我的朋友:)谢谢,在那里产生了一个问题。是的,他们不久前将其添加到了.NET核心平台扩展中。已经用了一段时间了。