Sadly AesGcm
is only for .NET Core >= 3.0 or .NET 5.0 (that in truth is .NET Core 5.0, a totally different beast from .NET Framework 4.x).
You can't import the single 5.0 System.Security.Cryptography.Algorithms.
If you want you can try to convert it from source code, or you can use BouncyCastle or similar libraries.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…