简体   繁体   English

System.Security.Cryptography.Pkcs 命名空间是否内置 .NET 5.0?

[英]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.

相关问题 Windows Mobile 6上的“ System.Security.Cryptography.Pkcs”的替代方法 - Alternative for “System.Security.Cryptography.Pkcs” on Windows Mobile 6 有哪些OpenSource System.Security.Cryptography.Pkcs替代方案? - What OpenSource System.Security.Cryptography.Pkcs Alternatives are there? Azure Function 无法加载文件或程序集“System.Security.Cryptography.Pkcs” - Azure Function Could not load file or assembly 'System.Security.Cryptography.Pkcs' System.Security.Cryptography命名空间在.NET Framework 5.4中不可用 - System.Security.Cryptography namespace not available in .NET framework 5.4 Xamarin错误:Android上的System.Security.Cryptography中不存在Pkcs - Xamarin error: Pkcs does not exist in System.Security.Cryptography on Android MD5在System.Security.Cryptography命名空间中不存在 - MD5 does not exists in System.Security.Cryptography namespace System.Security.Cryptography.HMACSHA1存在于两个具有相同名称空间的程序集中 - System.Security.Cryptography.HMACSHA1 exists in two assembly with same namespace System.Security.Cryptography.Pkcs.EnvelopedCms.GetCspParams 返回异常“找不到对象或属性。” - System.Security.Cryptography.Pkcs.EnvelopedCms.GetCspParams return exception “Cannot find object or property.” 使用System.Net.Security.Cryptography和密钥进行解密 - Decryption using System.Net.Security.Cryptography with the key System.Security.Cryptography.Algorithms dll 在 .net 4.8 - System.Security.Cryptography.Algorithms dll in .net 4.8
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM