According to your description, it seems to be an issue of ambiguous class name. Try to use the fully qualified name(Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext).
According to your description, it seems to be an issue of ambiguous class name. Try to use the fully qualified name(Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext).