If this were so, but now not, it is likely that you changed something in your project, if I understand correctly that you are creating a portable library (and not the Windows Store), if so, you probably changed that, that the plataforms you are targeting, go to "Project Properties" and "Library"> "Target Structures" click "Edit", there, if you selected everything or selected .NET Framework 4.0.3, then System.Net.Http is not allowed To solve this problem, you need to exit some options and enable the .NET Framework 4.5, since this is the minimum version to use System.Net.Ht tp.
source share