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

C#: Move GodotSharp to .NET8 #92131

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

C#: Move GodotSharp to .NET8 #92131

wants to merge 2 commits into from

Conversation

paulloz
Copy link
Member

@paulloz paulloz commented May 19, 2024

This is to prepare the EOS of .NET6 in November.

Would need to be more thoroughly tested. There are probably a bunch of other spots where we could mark things as scoped.

Because of ref safety changes in the languages, all methods that return an interop struct have to have all other reference parameters marked as scoped to signal the the method does not capture that reference.

The variant change is necessary, because for some reason a type of the exact shape godot_variant is in, crashes the .NET 7 JIT, but when changing it to be sequential with the same effective layout it works.
@paulloz paulloz added this to the 4.4 milestone May 19, 2024
- Change TFM and LangVersion
- Better exception throwing (CA1510, CA1512, CA1513)
- Better exception utility method definition (CA1859)
- Prefer comparing `.Count` over calling `.Any()` (CA1860)
- Prefer `.AsSpan()` over `.Substring()` (CA1846)
- Add a few more `scoped`
- Use `RuntimeHelpers.GetUninitializedObject()` instead of `FormatterServices.GetUninitializedObject()`
@Delsin-Yu
Copy link
Contributor

As we are upgrading the SDK version, should the end of support for Windows 7 and 8.1 on .Net 8 be documented?

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

Successfully merging this pull request may close these issues.

None yet

3 participants