Search Unity

[Windows Phone 8] Net.Dns, doesn't exist in target framework

Discussion in 'Windows' started by theUndeadEmo, Apr 8, 2014.

  1. theUndeadEmo

    theUndeadEmo

    Joined:
    Sep 18, 2012
    Posts:
    2
    Hi,

    This works fine in IOs Android but on Windows, when building it gives these errors. I've seen people with this problem but not much in how to fix the problem

    Error: type `System.Net.Dns` doesn't exist in target framework. It is referenced from Assembly-CSharp.dll
    Error: type `System.Net.IPHostEntry` doesn't exist in target framework. It is referenced from Assembly-CSharp.dll
    Error: type `System.TimeZone` doesn't exist in target framework. It is referenced from Assembly-CSharp.dll
    Error: type `System.Net.Sockets.UdpClient` doesn't exist in target framework. It is referenced from Assembly-CSharp.dll

    Thanks,
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,674
    Hi,

    there are two solutions:

    1. Don't use these types;
    2. Write them yourself.
     
  3. theUndeadEmo

    theUndeadEmo

    Joined:
    Sep 18, 2012
    Posts:
    2
    is this a problem with the windows phone 8 SDK or unity?
     
  4. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,731
    These are .NET classes. They are not present in .NET for Windows Store and .NET for Windows Phone, that is why you get errors.