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.

Unity 4.2 includes System.dll in all builds?

Discussion in 'Editor & General Support' started by mweldon, Sep 25, 2013.

  1. mweldon

    mweldon

    Joined:
    Apr 19, 2010
    Posts:
    109
    I used to be very careful to avoid using anything in System.dll for reasons that are explained on various documentation pages in the interest of keeping the download small. Since I upgraded to Unity 4.2.1 it seems to always include System.dll in every build. In fact, I created an empty project and built it and System.dll was included in the build. How do we prevent this?

    Here are some pages that explain the reasons to avoid including it:
    http://docs.unity3d.com/Documentation/Manual/ReducingFilesize.html
    http://docs.unity3d.com/Documentation/Manual/iphone-playerSizeOptimization.html

    This is from my Editor.log after building an empty project for PC or Webplayer or Android:

    Code (csharp):
    1. Mono dependencies included in the build
    2. Dependency assembly - Mono.Security.dll
    3. Dependency assembly - System.dll
    4. Dependency assembly - mscorlib.dll
     
  2. mweldon

    mweldon

    Joined:
    Apr 19, 2010
    Posts:
    109
    Nobody knows? Nobody cares?
     
  3. gerleim

    gerleim

    Joined:
    Apr 13, 2013
    Posts:
    3
    UnityEngine.dll refernces Mono.Security.dll, which references System.dll.

    Version is 4.2.2f1.

    An empty new project includes the dlls above (along with UnityEngine.dll and mscorlib.dll).

    This makes it impossible to build anything without Mono.Security.dll, and System.dll.

    As far as I remember, in earlier versions, an empty project did not include these.

    I'd like to know the reasoning behind this.

    Also, this page is now incorrect:
    http://docs.unity3d.com/Documentation/Manual/ReducingFilesize.html
     
    Last edited: Nov 12, 2013
  4. gerleim

    gerleim

    Joined:
    Apr 13, 2013
    Posts:
    3
    They fixed it in 4.3.0f4.
     
  5. zanearn

    zanearn

    Joined:
    May 7, 2011
    Posts:
    25
    Hi gerleim, how do you find out who is referencing who? Could you please help me with this question?
     
  6. gerleim

    gerleim

    Joined:
    Apr 13, 2013
    Posts:
    3
    I replied at the original question.
     
unityunity