I have the same experience. That is, on my Windows XP SP3 (Visual Studio 2010 + .NET 4.)), Nuget is bringing incompatible packages for .NET 4.5 being identified for .NET 4.0. Happened with Reactive (Rx), Async extensions and some more (I did not keep tracks) so I stopped using Nuget.
I've installed Async CTP (Version 3) + SP1 to it which brought:
- AsyncCtpLibrary.dll
- AsyncCtpLibrary_Phone.dll
- AsyncCtpLibrary_Silverlight.dll
- AsyncCtpLibrary_Silverlight.dll
- System.Threading.Tasks.Dataflow.dll
- System.Windows.Controls.Toolkit.dll
- System.Windows.Controls.Toolkit.Internals.dll
into <My Documents SubFolder>\Microsoft Visual Studio Async CTP\Samples\
which I now either reference or include into projects.
The .NET 4.5 MSDN docs code examples seem all use HttpClient
from System.Net.Http
namespace which I've got from download in code.msdn.microsoft.com Introduction to HttpClient
That is, I've got from the latter:
- System.Json.dll (4.0.20118.13260)
- System.Net.Http.dll (2.0.20118.13260)
- System.Net.Http.WebRequest.dll (2.0.20118.13260)
- System.Net.Http.Formatting.dll (4.0.20118.13260)