[英]Is System.Security.Cryptography.Pkcs namespace built-in .NET 5.0?
I'm trying to migrate the project from.Net Framework 4.5 to .NET 5.0.我正在尝试将项目从.Net Framework 4.5 迁移到 .NET 5.0。 The SignedCms class from System.Security.Cryptography.Pkcs namespace is used in this project.
此项目中使用了 System.Security.Cryptography.Pkcs 命名空间中的 SignedCms class。 It looks like .NET 5.0 includes this namespace.
看起来.NET 5.0 包含此命名空间。 But I receive the error:
但我收到错误:
Error CS1069 The type name 'SignedCms' could not be found in the namespace 'System.Security.Cryptography.Pkcs'. This type has been forwarded to assembly 'System.Security.Cryptography.Pkcs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
My question is: Should I install NuGet package for system.security.cryptography.pkcs?我的问题是:我应该为 system.security.cryptography.pkcs 安装 NuGet package 吗? Or it is possible to enable this namespace in another way?
或者可以通过其他方式启用此命名空间?
Just install the NuGet package and move on.只需安装 NuGet package 并继续。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.