Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
523 views
in Technique[技术] by (71.8m points)

c# - 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. The SignedCms class from System.Security.Cryptography.Pkcs namespace is used in this project. It looks like .NET 5.0 includes this namespace. 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? Or it is possible to enable this namespace in another way?

question from:https://stackoverflow.com/questions/65829734/is-system-security-cryptography-pkcs-namespace-built-in-net-5-0

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Just install the NuGet package and move on.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...