I am working on the iOS
App in Xamarin
in Visual Studio 2019.
My App is working perfectly on Simulator but when I am trying to Build Solution
to deploy or debug on iPhone (registered under developer account) it's returning me this error.
Can't resolve the reference 'System.Void System.Security.Cryptography.DSACng::.ctor(System.Security.Cryptography.CngKey)', referenced from the method 'T Internal.Cryptography.Pal.Windows.PkcsPalWindows::GetPrivateKey(System.Security.Cryptography.X509Certificates.X509Certificate2,System.Boolean,System.Boolean)' in 'System.Security.Cryptography.Cng, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
I tried many possible solutions to resolve the issue but did not succeed.
I checked all my references in the project which one is calling this System.Security.Cryptography.CngKey
NuGet package. I tried adding other System.Security.Cryptography.****
NuGet packages as well still received the same error.
Here is the list of references I have added to my project.
How I can resolve this issue?