Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated SHA1CryptoServiceProvider constructor causes visual studio 2022 designer problems #194

Open
fellrnr opened this issue Sep 12, 2023 · 0 comments

Comments

@fellrnr
Copy link

fellrnr commented Sep 12, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant