Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. The 2023.1 beta is now available for testing. To find out what's new, have a look at our 2023.1 feature highlights.
    Dismiss Notice

Mono Upgrade Upgraded Mono/.Net in Editor and Some Players on 5.6.0b5

Discussion in 'Experimental Scripting Previews' started by JoshPeterson, Feb 2, 2017.

Thread Status:
Not open for further replies.
  1. JoshPeterson


    Unity Technologies

    Jul 21, 2014
    Here is a build matching our 5.6.0b5 beta release with the using the latest version of Mono (4.6+):

    Please post any issues you have as a new thread on this forum and tag the posts with Mono Upgrade

    Please backup your project before trying this build.

    Important Notes
    • For this release, the Editor and the following players should be working:
      • Windows, OSX, Linux standalone
      • iOS with IL2CPP
      • Android with IL2CPP and Mono
    • Other platforms are known to not work yet, and are probably not worth installing.
    • Managed debugging via Visual Studio Tools for Unity or MonoDevelop is *not supported* in this release. If you want to use VSTU for editing please use the special build linked at the bottom of this post.
    • The compiler targets the C# 6 language.
    • The compiler *by default* will still target the .Net 4.6 framework profile.
    • Known issues
      • The Android/Mono build does not work properly with managed code stripping. Please disable managed code stripping for now.
      • For some projects, the Windows standalone player can crash on Windows 8.1. This is intermittent, so we would love to see any crash reports or data about this

    How will this affect me?

    This upgrade should “just work”; except we don't expect it to be stable. :D

    How do I target .Net 4.6?

    File -> Build Settings -> Player Settings

    Under the Optimizations section, choose .Net 4.6 for the Api Compatibility Level (this should be the default for new projects).

    What should I be testing/looking for?

    We mostly want to know that this doesn't break existing code. Please trying running your projects in in the players for each platform and let us know how it goes. If everything works, go ahead and try some new C#/.Net Features.

    We are also interested in knowing about runtime performance a size regressions versus the current supported versions of Unity.

    Are there any breaking changes?

    Yes, there is one known breaking change. The new compiler has a change to how a closure captures the foreach variable. This was a breaking change the C# language team made. See previous posts about compiler upgrade or here for details.

    Visual Studio Tools for Unity
    The VSTU team has provided us with an unsupported and experimental build to support the changes in this preview. This is a custom build of VSTU 2.3 that supports Visual Studio 2015 only. Installing this build will overwrite any existing installation of Visual Studio 2015 Tools for Unity.

    Get this special installation here:

    if you want to reinstall the latest supported build of VSTU for Visual Studio 2015 just head over to
Thread Status:
Not open for further replies.