Search Unity

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

    JoshPeterson

    Unity Technologies

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

    bit.ly/unity_5_6_0_b5_new_mono

    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
    FAQ

    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: https://oc.unity3d.com/index.php/s/vWeoLpPGgovEkAE

    if you want to reinstall the latest supported build of VSTU for Visual Studio 2015 just head over to https://visualstudiogallery.msdn.microsoft.com/8d26236e-4a64-4d64-8486-7df95156aba9
     
    ESG-Steven, sivael, frank28 and 11 others like this.
Thread Status:
Not open for further replies.