Update obsolete api calls in .NET 6#1401
Merged
johnnypham merged 2 commits intodotnet:mainfrom Nov 23, 2021
johnnypham:net6
Merged
Update obsolete api calls in .NET 6#1401johnnypham merged 2 commits intodotnet:mainfrom johnnypham:net6
johnnypham merged 2 commits intodotnet:mainfrom
johnnypham:net6
Conversation
johnnypham
commented
Nov 22, 2021
| } | ||
|
|
||
| #if NETFRAMEWORK | ||
| /// <summary> |
Contributor
Author
There was a problem hiding this comment.
This method is only called in netfx. In net5, accessing the PrivateKey property throws an exception. Now in net6, it won't even compile, so we can just compile it for netfx.
Kaur-Parminder
approved these changes
Nov 22, 2021
JRahnama
approved these changes
Nov 22, 2021
Contributor
|
I found more usages should be updated. Check from here. |
Contributor
Author
Updated those too. |
DavoudEshtehari
added a commit
to DavoudEshtehari/SqlClient
that referenced
this pull request
Jan 13, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.rngcryptoserviceprovider?view=net-6.0
https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.x509certificates.x509certificate2.privatekey?view=net-6.0#System_Security_Cryptography_X509Certificates_X509Certificate2_PrivateKey