-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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# .NET 9 support #98334
Comments
Every Godot C# project targets I'm also not sure what you mean by adding .NET 9 binary support for Godot. As far as I know, Godot is already compatible with .NET 9. The only issue is Godot will struggle with prerelease versions (such as .NET 9 right now) which requires you to set the I tested building the Godot C# projects with |
It's not about building actual C# projects for godot, that works as long as you put the .NET 8 as target for it. |
Sorry, that's what I meant. I'm running Every Godot engine assembly targets |
For me this started happening after this latest update which is RC2. |
I have a similar issue. I am starting to learn Godot - I am a somewhat experienced C# developer. On Windows 11 - I installed Godot , created a new project, and selected VS as the editor. I have VS2022 17.12.0 Preview 4 (latest preview as at this time). dotnet --list-sdks shows these (earlier installations up to 7.0,120 are removed for brevity; no 8.x.x are present): 9.0.100-preview.6.24328.19 [C:\Program Files\dotnet\sdk] I created a project, added a root node, clicked the Add script button. This was shown in the Ouput window: VS2022 is opened but with no solution/code etc. |
To allow pre-releases (such as .NET 9), set the |
Hi, don't know if it's useful or not, but I have been working with a project targeted at .NET 9.0 and it's been working rather well so far. Haven't had any issues so far. I am running a 4.3-based self-compiled build, but it doesn't have anything but #79731 baked in. If I find something weird, I can update this thread. But I can vow for .NET 9 working flawlessly on a greenfield 4.3 project. EDIT: for context
|
Did you try AOT with it? afaik it wont load on .NET 9 but will on .NET 8.
I'll give a try. Edit: This indeed allowed it to compile and run, thanks. But still won't load AOT binaries i guess. |
Works fine for me. What error are you getting? |
It used to say that the methods were not found, but after the latest .net update it seems to have been solved. |
Tested versions
System information
Windows 11 Pro 27723
Issue description
The .NET 9 left preview and is on release-candidate state, due to this the godot global.json file which by default has "rollForward": "latestMajor", is jumping from .NET 8 to .NET 9 during the build and glue procedures, but godot itself cannot load .NET 9 binaries, due to changes on them from .NET 8 to .NET 9, we should either start adding .NET 9 binary support for godot (as in RC state it won't change the actual binary structure any further again on this version), or alter the global.json so it does not jump to RCs of new major releases. By default, by having the latest SDKs installed on the system, the godot will automatically try to use the .NET 9 and thus fail to load the resulting binaries afterwards.
It used to work perfectly while the .NET 9 SDK were marked as preview, after latest update from VS Studio Installer, which marked it as RC instead, this started happening.
Steps to reproduce
Simply have latest .NET SDK tools installed on your system and build normally.
Minimal reproduction project (MRP)
Its build issue, thus theres no MRP.
The text was updated successfully, but these errors were encountered: