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

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,

Hi,

there are two solutions:

  1. Don’t use these types;
  2. Write them yourself.

is this a problem with the windows phone 8 SDK or unity?

These are .NET classes. They are not present in .NET for Windows Store and .NET for Windows Phone, that is why you get errors.