Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by bang2ni · Jun 07, 2012 at 12:44 AM · c#mono.net

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?

Comment
Add comment · Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Datael · Jun 07, 2012 at 01:10 AM 1
Share

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

avatar image Eric5h5 · Jun 07, 2012 at 01:21 AM 1
Share

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.

avatar image Eric5h5 · Oct 17, 2013 at 04:14 PM 1
Share

...Or possibly Unity 5.

avatar image Topthink · Sep 22, 2017 at 06:09 PM 0
Share

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.

avatar image Bunny83 Topthink · Sep 22, 2017 at 06:40 PM 0
Share

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.

4 Replies

· Add your reply
  • Sort: 
avatar image
10
Best Answer

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.

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ina · Nov 27, 2014 at 10:50 AM 0
Share

it says .net 2.0 in api compatibility level... how is that 3.5?

avatar image Eric5h5 · Nov 27, 2014 at 04:45 PM 0
Share

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.

avatar image meat5000 ♦ · Oct 14, 2015 at 04:13 PM 0
Share

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.

avatar image Eric5h5 meat5000 ♦ · Oct 14, 2015 at 04:31 PM 0
Share

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.

avatar image meat5000 ♦ Eric5h5 · Oct 14, 2015 at 04:33 PM 0
Share

Ha, ok. Thanks for the info :)

avatar image
2

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

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

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

Comment
Add comment · Show 8 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Eric5h5 · Feb 11, 2014 at 07:58 PM 1
Share

$$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.

avatar image NorthernEagle · Feb 12, 2014 at 05:20 PM 0
Share

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.

avatar image Eric5h5 · Feb 12, 2014 at 07:53 PM 1
Share

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.

avatar image NorthernEagle · Feb 13, 2014 at 01:12 AM 0
Share

Hi Eric5h5, oh ok I see now. Thanks

avatar image Abra Kadabra · Feb 06, 2015 at 06:37 PM 0
Share

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?

alt text

show-mono-clr-version-2015-02-06-19-33-53.png (76.8 kB)
Show more comments
avatar image
1

Answer by cerkit · Sep 22, 2017 at 05:54 PM

@bang2ni , as of version 2017.1, it can use up to C#6 and .NET 4.6 using the experimental mode. Otherwise, it uses .NET 3.5.

What's new in 2017.1

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

14 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

Is it possible to reference .NET references and give up cross-platform? 1 Answer

Distribute terrain in zones 3 Answers

When will Unity Support .NET 4 to the current Mono Level? 1 Answer

What version of Mono the 2017.1 version use? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges