-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
Enable C# 11 and embed base64 encoded certificates as UTF-8 data #414
Conversation
Ahh, CI doesn't like C# 11. I'll look into this a bit later. |
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## master #414 +/- ##
==========================================
+ Coverage 75.02% 75.23% +0.20%
==========================================
Files 95 95
Lines 2751 2782 +31
Branches 457 458 +1
==========================================
+ Hits 2064 2093 +29
+ Misses 575 574 -1
- Partials 112 115 +3
|
future note: We should also consider cross-targeting and testing against net8.0 after Preview 7 or RC1. This will also provide us with the latest System.Text.Json source generation improvements. |
@abergs Ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you @iamcarbon
Is a bit faster to parse UTF-8 data directly than convert from UTF-16.
NOTE, this uses the built-in support for static data initialization. Accessing ROOT_CERT is non-allocating and refers directly to the data.
This PR also simplifies a check using C# 11 list patterns.