-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Using System.Threading.Tasks throws error with .NET 5.0 as build tool. #43458
Comments
Found a fix for it. Changing the .csproj: to
Fixes it. My guess is that net5.0 is not fully supported, yet? Will that be the case for Godot 4.0 though? |
See godotengine/godot-proposals#793. From what I've heard, .NET 5.0 is still a bit too unreliable on mobile right now. Hopefully, .NET 6.0 should fare better in this regard. |
Godot uses Mono right now, and that will not change in the near future (and will likely still be the case for 4.0). Mono does not support .NET 5 as a target, only .NET 5 supports .NET 5 as a target right now :) The default target is |
Why no interesst to change mono to .NET 5? |
@Shpendicus It's not at all that there is no interest. If there was no interest, then godotengine/godot-proposals#793 would be closed. It's just that it won't happen in the near future, .NET 5 literally just came out a few days ago and it's still missing some things. |
@aaronfranke my idea was actually that if ppl could start by now adpoting .NET 5, this time u need to adopt it into Godot, would IMHO be sufficient for .NET 5 to be on a really stable lvl/production useful lvl, so you are working simultaniously with MS . |
@akien-mga Same with the latest .NET 5.0.5 Install .NET 5.0: SDK 5.0.202
|
Closing as not a bug. You should be able to use the .NET 5 Sdk to build your project but you cannot set the target framework to .NET 5 as Godot doesn't support that. |
Godot version:
Godot_v3.2.3-stable_mono_win64
OS/device including version:
Windows 10 1909
Issue description:
Ran into this problem while updating an older project to use the latest stable Godot and use dotnet CLI instead of MSBuild.
I started a new project from scratch, only reusing things from my old project. All seems to run fine with my code updated only my async functions throw errors and crash the game when they are called.
Isolated it in the example project. I also made sure that a basic C# CLI project runs the code just fine with my installed .Net build tool so it must be something Godot related.
I got this error instead of my Async function running correctly:
Steps to reproduce:
Minimal reproduction project:
2020 - Test.zip
The text was updated successfully, but these errors were encountered: