Search Unity

mdtool only compiling with C# compiler

Discussion in 'Scripting' started by Foam, May 15, 2014.

  1. Foam

    Foam

    Joined:
    Jun 13, 2012
    Posts:
    322
    Hello.

    I am attempting to build my Unity project from the command line and running into some issue. Obviously I can use Unity itself just fine from the command line, but, I am attempting to use mdtool, and passing in the SLN file generated by Unity Editor.

    This also works fine when all I have are C# files in my project, but, if I add one Boo or UnityScript file, mdtool still uses the C# compiler to compile those files, which of course fails horribly.

    Anyone know how to get mdtool to use the boo or unityscript compiler for those files?
     
  2. Foam

    Foam

    Joined:
    Jun 13, 2012
    Posts:
    322
    Well, hell. I figured it out.

    At some point I installed Mono 3.x after I installed Unity. I thought I was being careful to use the Unity-provided MD and associated tools and libs, but, guess what mdtool is? A shell script, where it has, right at the beginning:

    PHP:
    MONO_FRAMEWORK_PATH=/Library/Frameworks/Mono.framework/Versions/Current
    Which in my case was pointing to /Library/Frameworks/Mono.framework/Versions/3.4.0, NOT the Unity provided frameworks. :mad: :mad: Which also explains why MonoDevelop couldn't build the Boo stuff either.

    Bleh. Oh well, problem solved at least!