Search Unity

Compiler can't find some .NET System functions

Discussion in '5.3 Beta' started by cory_munky, Oct 30, 2015.

  1. cory_munky

    cory_munky

    Joined:
    Dec 10, 2014
    Posts:
    66
    Any clues why I would get these compile errors with 5.3 but not any 5.2 version?
    .NET 2.0 vs 2.0 Subset both give the same results.


    The type or namespace name `NetworkInformation' does not exist in the namespace `System.Net'.
    `System.IO.Directory' does not contain a definition for `GetLastWriteTime'
    `System.IO.File' does not contain a definition for `GetLastWriteTime'
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,341
    Which platform are you targeting?
     
  3. cory_munky

    cory_munky

    Joined:
    Dec 10, 2014
    Posts:
    66
    This is just from opening the project in OSX. My target is to build for iOS and Android. I have the 5.3 OSX editor with the 5.3 iOS Support installed.
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,341
    I meant in Unity editor build settings, which target platform is selected?
     
  5. cory_munky

    cory_munky

    Joined:
    Dec 10, 2014
    Posts:
    66
    Originally, I manually installed just the base editor and iOS support. Reinstalling via the download assistant and including OSX support fixed my confusing errors (after deleting the library).

    Thanks!