Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  5. Nominations have been announced for this years Unity Awards. Celebrate the wonderful projects made by your peers this year and get voting! Vote here!
    Dismiss Notice
  6. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  7. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

How to confirm I'm using the incremental compiler?

Discussion in 'Entity Component System and C# Job system' started by aaversa, Sep 19, 2018.

  1. aaversa

    aaversa

    Joined:
    Sep 5, 2016
    Posts:
    16
    According to this page, the "Compiler" tab of Edit -> Preferences -> Compiler should show the Compiler version as "Unity Incremental Compiler..."

    https://docs.unity3d.com/Packages/com.unity.incrementalcompiler@0.0/manual/index.html

    However, after installing the package and switching my Scripting Runtime Version to .NET 4.x equivalent, my Compiler is listed as "Microsoft Roslyn 2.6.0.0".

    Is this the same thing as the Incremental Compiler and the documentation is outdated? Or did I miss a step?
     
  2. RaventurnPatrick

    RaventurnPatrick

    Joined:
    Aug 9, 2011
    Posts:
    21
    Hey I know a little late, but maybe someone else also wants to know this:
    Look in your Library\ScriptAssemblies Folder - there should be all *.pdb files around (produced by the incremental compiler) instead of *.mdb files (only produced by mcs - unitys default compiler)

    Alternatively you can also look into the editor log (right click console tab -> editor log) and see if mcs.exe is called (which would be the old compiler)

    I didn't have Visual Studio installed and for some reason it kept using the mcs compiler (without warnings), after installing Visual Studio however it seems to work (not sure whether thats a hidden requirement)