GMap.NET icon indicating copy to clipboard operation
GMap.NET copied to clipboard

Deprecated SHA1CryptoServiceProvider constructor causes visual studio 2022 designer problems

Open fellrnr opened this issue 3 years ago • 0 comments

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.

fellrnr avatar Sep 12 '23 11:09 fellrnr