If I am not wrong, mono already supports .net framework 4.0, am I right?
Are there plans for Unity to support it as well?
If I am not wrong, mono already supports .net framework 4.0, am I right?
Are there plans for Unity to support it as well?
depends on what you want to do. Some 4.0 stuff works in unity, the only one i’ve tried so far is optional parameters, which works fine.
2.0 as far as I’m aware. Check out which version of mono unity are using.
It supports more than 2.0.
http://mono-project.com/Compatibility
pretty much anything green, though not entirely (like winforms/system.drawing/asp.net doesn’t work in unity for obvious reasons)
It’s approximately 3.5.
–Eric
I feel stupid for asking this, but when it comes to supporting .net 4.0 is it just a mono problem or does the problem deal with Unity itself not supporting the .net 4.0 framework?
it is not stupid I wondered the same. If Unity uses the jit generated code as it is or it need to convert it. In the first case they could update mono easily.
Anyway I needed the new System.threading.Task that are not supported.
In our case we like the new GC that mono offers. Hopefully it performs a lot faster than the current GC.
So Unity itself supports C# 4.0? It’s the built-in mono environment that can’t? Am I understanding this right? If Unity can handle C# 4.0 than I was going to get a Visual C# 4.0 book.
Unity uses Mono 2.6 iirc. Mono 2.6 supports large parts of 3.5 framework (FRAMEWORK) and most language features from C# 3.5 and 4.
Mono 2.8/2.10 has greater support for of 4.0 Framework Library and a new garbage collection. But the C# 4.0 book should be fair enough, you won’t be able to use all of that stuff in Unity, but that’s also true for C# 3.5, 3.0 etc. books.
WF, WPF and WCF for example are not implemented in Mono or are not planed etc. So there should be nothing to stop you getting the C# 4.0 book, as its quite unlikely that you’ll need most of the 4.0 specific stuff in Unity anyway.
Thank you. Unity isn’t the only thing I want to use C# for. I want to make apps eventually.