diff --git a/Nexmo.Api/PemParse.cs b/Nexmo.Api/PemParse.cs index 386aab498..d2cfb9a0f 100644 --- a/Nexmo.Api/PemParse.cs +++ b/Nexmo.Api/PemParse.cs @@ -237,8 +237,8 @@ public static RSA DecodeRSAPrivateKey(byte[] privkey, bool isPkcs8) elems = GetIntegerSize(binr); IQ = binr.ReadBytes(elems); - // ------- create RSACryptoServiceProvider instance and initialize with public key ----- -#if NETSTANDARD1_6 + // ------- create RSACryptoServiceProvider instance and initialize with public key ----- +#if NETSTANDARD1_6 || NETSTANDARD2_0 RSA RSA; if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || RuntimeInformation.IsOSPlatform(OSPlatform.OSX))