I am trying to add a reference to System.Security.Cryptography.X509Certificates, but I understand: "Type or namespace" Cryptography "does not exist in the namespace" System.Security ".
I tried to add System.Security to the links, I tried to add System.Security.dll, I tried to add mscorlib.dll, I tried to find how to add Windows.Security.Cryptography.
No luck, so I can't use the X509Certificate2 class that I need.
Does anyone face this incredibly sad situation?
UPDATE:
Looking at this question, RandomNumberGenerator in ASP.NET5 I cannot find what I am looking for in Nuget. In nuget, I only see System.Security.Cryptography.Hashing.Algorithms.Analyzers. I need System.Security.Cryptography.X509Certificates
source share