- Home /
What're exact version of c# and .net unity use?
I know it's depending on mono-framework. And i know the page where .net compatible sheet wrote. But i need c# language version Again and, mono version isn't specified even that page
So, what're exact version of those?(c#, .net or mono-framework) And where can i find that on unity website?
It usually gets noted in the release notes when they upgrade the version of C# etc in Unity. You might try taking a look back through some of the more recent ones. I'm pretty sure it was updated when they moved to Unity 3.5
It hasn't been updated since Unity 3.0. $$anonymous$$ainly because updating it tends to break stuff. So I wouldn't expect an update until Unity 4.
I don't even know for sure what versions I use...I download and use the latest versions (not the beta versions) of Unity and the $$anonymous$$icrosoft Visual Studio (which includes C#) and that is it. Whatever that gives me is what I use...I've found that to be fine for a casual user such as myself...although needs vary from user to user.
That's does not answer the question at all. If you can't answer the question, why posting an answer? I converted your answer into a comment. However you should keep in $$anonymous$$d that UnityAnswers is a Q&A site and not a forum.
Answer by Eric5h5 · Jun 07, 2012 at 01:21 AM
There isn't any exact .NET version. As of Unity 3.5, it uses Mono 2.6, which is sort of like .NET 3.5.
it says .net 2.0 in api compatibility level... how is that 3.5?
That's just the baseline compatibility level. $$anonymous$$ono 2.6 has Linq etc. so obviously that's not limited to only what was in .net 2.0.
Looking in the $$anonymous$$onoDevelop 'About' tab shows the following.
Runtime:
$$anonymous$$icrosoft .NET 4.0.30319.34209
GT$$anonymous$$ 2.24.20
GT$$anonymous$$# (2.12.0.0)
The "Show Loaded Assemblies" button gives a breakdown of the rest (A lot of which is still at 2.6.0.0)
Not sure why noone seems to have considered looking in the about tab before.
As Eric states, nothing has really been updated for time.
Because that's not meaningful; $$anonymous$$onoDevelop is not Unity, and Unity doesn't use .NET, except for certain $$anonymous$$icrosoft platforms (WP8). What matters is what Unity actually uses, which is still (as of Unity 5.2) $$anonymous$$ono 2.6.
Also, my $$anonymous$$onoDevelop says "Runtime: $$anonymous$$ono 2.10.12" for 4.0.1, and "Runtime: $$anonymous$$ono 4.0.4" for 5.9.6, which is just as irrelevant. It has nothing to do with Unity.
Answer by Vipul_Gandhi · Jul 15, 2015 at 05:40 AM
Please Use "Debug.Log(System.Environment.Version);" to get the .net version in unity.
Thanks- Vipul Gandhi
Answer by Freefly18 · Feb 11, 2014 at 07:48 PM
I was looking for the answer and found it by myself, so I thought I would update the answer :
As of Unity 4.3, MonoDevelop 4.0.1 is used, which uses .NET 4.0
$$anonymous$$onoDevelop is a code editor, which is a totally different thing from $$anonymous$$ono, which is an open-source implementation of .NET. This does not answer the question at all. As of Unity 4.3 the answer I gave is still accurate since $$anonymous$$ono in Unity has not been updated.
So is Unity 4.3 still using .Net 2.0? Like Freefly18 mentioned, $$anonymous$$onodevelop 4.0.1 can use .Net up to version 4.0. Thank you both.
No, it's not using .NET 2.0. See the accepted answer to this question. Again, $$anonymous$$onoDevelop is irrelevant. It has nothing whatsoever to do with the question. You can use any code editor you want with Unity; the version of the code editor has zero to do with the version of $$anonymous$$ono that Unity uses.
eric5h5 answered Jun 07, 2012 at 01:21 A$$anonymous$$:
"There isn't any exact .NET version. As of Unity 3.5, it uses $$anonymous$$ono 2.6, which is sort of like .NET 3.5."
eric5h5 answered Feb 11, 2014 at 07:58 P$$anonymous$$:
"As of Unity 4.3 the answer I gave is still accurate since $$anonymous$$ono in Unity has not been updated."
It's February 2015 now, and I've gone through the Unity Release notes all the way from Unity v4.6.2 back to v3.5. The only note which hinted at .NET v3.5 compatibility was in the Unity v4.5.1 Release notes Unity v4.5.1 Release notes :
"Windows Phone/Windows Store Apps: Unity will now correctly build player if plugins use .NET 4.5 APIs that are not available in .NET 3.5"
BUT, when I compile a small CS project in $$anonymous$$onoDevelop-Unity to show the CLR version, it shows as 4.0.30319.34209. The exact same version which is also shown by compiling the exact same CS project in VS2013 Community. See screenshot below.
1) So what I want to know is which version of the .NET framework should I reference at the $$anonymous$$SDN website, .NET v3.5 or .NET v4.0?
2) Also which compiler version will $$anonymous$$CS pick?
Your answer
![](https://koobas.hobune.stream/wayback/20220613072447im_/https://answers.unity.com/themes/thub/images/avi.jpg)