C# System.Security.Cryptography.Pkcs命名空间是内置的.NET 5.0吗?
我正在尝试将项目从.Net Framework 4.5迁移到.Net 5.0。此项目中使用System.Security.Cryptography.Pkcs命名空间中的SignedCms类。NET 5.0包含此命名空间。但我收到了错误:C# System.Security.Cryptography.Pkcs命名空间是内置的.NET 5.0吗?,c#,.net-core,C#,.net Core,我正在尝试将项目从.Net Framework 4.5迁移到.Net 5.0。此项目中使用System.Security.Cryptography.Pkcs命名空间中的SignedCms类。NET 5.0包含此命名空间。但我收到了错误: Error CS1069 The type name 'SignedCms' could not be found in the namespace 'System.Security.Cryptography.Pkcs'. This type has be
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'
我的问题是:我应该为system.security.cryptography.pkcs安装NuGet软件包吗?或者可以用另一种方式启用此名称空间?只需安装NuGet软件包,然后继续。只需安装NuGet软件包,然后继续。它应该存在:请参阅“应用于”@canton7我想是的,但实际上,错误只在NuGet软件包安装后消失。它应该存在:请参阅“应用于”@canton7我也这么认为,但实际上,这个错误在NuGet软件包安装之后就消失了。