In my application I'm using System.Security.Cryptography (Microsoft dll) for decryption of my logic, at present I'm already using Rijndael Class from 4.0 version, now I've to use AesGCM of 5.0 version too to decrypt the content which was encrypted using AesGcm class however I'm unable to upgrade the version of assembly below are the workarounds I tried
- If I tried to reinstall it installs 4.0 instead of 5.0, I couldn't find exact assembly in Nuget console
- To use AesGcm intellisense prompted to upgrade C# version from older to 8.0 I did by editing .csproj file under PropertyGroup ->LangVersion to 8.0
However intellisense went off but still I'm unable to use AesGcm class
using var aes = new AesGcm("_key to be enter alter");
Error: Type or Namespace AesGCM couldn't find in assembly ref
3. I tried to add below attributes for AesGcm method call, still didn't worked bcz I don't have ver 5 installed
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
I need to use both method Rijndael and AesGcm, could someone suggest me what am I doing wrong here?