-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
DebuggingUtils syntax error for new projects #15742
Comments
As far as I know Mono 4.5.0 is not supported, we recommend at least version 5.2.0 (earlier versions might work, but we don't test those). In your case, your Mono version lacks support of the CC @neikeq |
(Closing as it's not a bug, but in case @neikeq wants to keep some support for older Mono versions, removing the use of C# 7.0 features could still be done I guess) |
@akien-mga Thanks the rapid response! I have to confess to a typo in this report I was running mono-5.4.0.201-x64 when I first encountered this error. Stepping forward to mono-5.4.1.6-x64-0 has not resolved it either. I had not encountered the type pattern syntax until now so didn't recognise it as a recent language version feature. Looking at my build log (full text in the attached zip) it ends with a reference to:
This file contains the following content:
So it appears my build process is limiting itself to c# 5.0 for some reason. |
Right, so we should likely avoid using C# 7.0 features for now. |
You need MSBuild 15 (2017) for C# 7 support. However, I wanted to keep these assemblies to C# 6 in order to support MSBuild 14, but looks like I forgot about that line. |
Thanks, I was using Build Tools 2015 as a workaround for encountering the I have now setup VS2017 / MS Build (System) as a workaround. |
Can you make a PR with your changes if it's enough to fix building with VS 2015? |
Godot version:
Godot_v3.0-rc1_mono_win64
OS/device including version:
Windows XP
Issue description:
Build fails if my project includes a c# script.
Steps to reproduce:
I have Mono
4.5.05.4.0 and Microsoft Build Tools 2015 installed (these were working with 3.0 beta 2)I have deleted my
C:\Users\<username>\AppData\Roaming\Godot
directory.If I create a new project and attached a new c# script to a node then when I build I receive three errors:
My
C:\Users\<username>\AppData\Roaming\Godot\mono\solutions\GodotSharp_-<somenumber>\Core\DebuggingUtils.cs
contains the following lines:If I modify them to this then no further errors occur:
Minimal reproduction project:
Attached zip contains example project and copy of my
C:\Users\<username>\AppData\Roaming\Godot\mono
directoryDebuggingUtils_test_files.zip
The text was updated successfully, but these errors were encountered: