-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add C# 12 and .NET 8 polyfills #81
Conversation
ddc56af
to
50ffc95
Compare
I thought |
50ffc95
to
c0c72de
Compare
.NET 8 had released, so is there a plan get this merged? |
Of course there is a plan, or this PR wouldn't exist. Just a little bit of patience, this is not my full time job 😅 |
Note: waiting on actions/runner-images#8797. |
The image seems to be updated now. |
3b31c5a
to
ff24905
Compare
ff24905
to
d171c2e
Compare
Hi @Sergio0694, is the namespace |
It's intended. Roslyn matches the attribute by full name, and will not let you use it if it's in the correct one and the runtime does not support it. So the only way to make that compile is to put it into a different namespace. I'm doing the same for |
@Sergio0694 do you have any insight why |
Okay I see it's because |
It is, yeah. I'll go fix it when I have a minute, good find! 😅 |
If it's just a matter of changing the visibility and bumping the version, I can make a PR. |
Just needs changing the visibility, the version is set automatically by the CI when I create a release branch 🙂 |
Voila #92 |
Sorry for the comment spam, but it's insane to me that C# 12 has been out for less than a month and you've already released polyfill support for it. Thank you so much @Sergio0694 (and collaborators!) for this project. |
Description
This PR adds the following polyfills for C# 12 and .NET 8:
[RequiresLocation]
[CollectionBuilder]
[UnsafeAccessor]
[Experimental]
[InlineArray]