GMap.NET
GMap.NET copied to clipboard
Deprecated SHA1CryptoServiceProvider constructor causes visual studio 2022 designer problems
The deprecated constructor shown below can cause an exception when adding the map control in VS 2022.
static readonly SHA1CryptoServiceProvider HashProvider = new SHA1CryptoServiceProvider();
This can be replaced with
static readonly SHA1 HashProvider = SHA1CryptoServiceProvider.Create();
Which resolves the issue.
This occurs several times in GMap.NET.Core, Cache.cs, Stuff.cs, GMapProviders.cs, and GoogleMapProviders.cs, with variations on how the constructor is called.