-
-
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
[Mono] Mono MSBuild assumes C#7.3 feature level in new version #36058
Comments
What build tool is selected in the editor settings? Is it mono's or vs build tools and what is the version? |
Both build tools fail to build the project
Visual Studio MSBuild reports this version:
|
I also have this problem:
That error message appears both in Godot's editor, and in my IDE. I'm running Fedora 32, and Godot Mono 3.2.1 stable. For my IDE I'm using VS Code 1.46.1. Mono is at version 6.8.0.123. MSBuild is at 16.5.0. In my editor settings, the only |
Oh hey, I just tried @WizzardMaker's attempt at forcing version 8 with |
Adding The missing features (including default interface implementation) require NetStandard 2.1 or NetCore 3.0, however supporting this in Godot does not seem to be a trivial task @WizzardMaker Unfortunately it is likely you'll have to wait until Godot 4.0 to make full use of c# 8.0 As suggested in #39410 updating the docs to reflect that not all features are available would be best in the short term to avoid misleading people. |
There's now a pull request that implements .NET Standard 2.1 support: #40595 It probably won't be cherry-picked to the |
This should be addressed by #64089 in 4.0, but 3.x will keep using Mono. |
I'll close this since #64089 has already been merged. About 3.x, the .NET Sdk changes of #40595 were actually backported in #41408 and while you can change the Keep in mind that you can use a newer C# version with |
Godot version: 3.1.2 Mono -> 3.2 Mono
OS/device including version: Windows 10
Issue description:
I can't use the new C#8 features with the new Mono version with the default .csproj file, as it tries to use C#7.3
And forcing it with
<LangVersion>8.0</LangVersion>
gives this errorMinimal reproduction project:
My .csproj file to maybe check for some errors
https://pastebin.com/ukUzAtKT
The text was updated successfully, but these errors were encountered: