Why can't I reference System.Net.Sockets in a Portable Class Library using Xamarin?
I am trying to use System.Net.Sockets API in a portable class library so that my projects can reuse code for socket connections. But I cannot reference that namespace in my code. As I understand it, PCLs limit you to assemblies that are available on all targeted platforms. But I am targeting ios, Android, and .Net 4.5 (using Xamarin), and all of these should have the system.dll assembly that contains the API. What am I missing? As it is right now, there is no PCL profile targeting only .NET Framework (4/4.03/4.5/4.5.1) Xamarin.Android Xamarin.iOS If you for example attempt to define a Portable