Colleagues, Thanks in advance for your help.
I am working on a core app using system.net.http.HttpClient, and trying to use the class System.Net.Http.Formatting.BufferedMediaTypeFormatter. I can not load a package with reference to this class Can anybody tell me what package from NuGet to load into my project. I tried installing Microsoft.AspNet.WebApi.Client 5.2.3, but it is not compatible with netcoreapp1.1.
At this time the list below are the packages that are loaded.
NuGet
I get the following error when I install all the packages below:
ErrorCS0433The type 'HttpClient' exists in both 'System.Net.Http, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'System.Net.Http, Version=4.1.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
Currently I have the following packages installed
- Microsoft.AspNet.WebApi.Client 5.2.2
- Microsoft.AspNetCore 1.1.2
- Microsoft.AspNetCore.Mvc 1.1.3
- Microsoft.AspNetCore.StaticFiles 1.1.2
- Microsoft.EntityFrameworkCore.SqlServer 1.1.2
- Microsoft.EntityFrameworkCore.Tools 1.1.1
- Microsoft.Extensions.Logging.Debug 1.1.2
- Microsoft.VisualStudio.Web.CodeGeneration.Design 1.1.1
- Newtonsoft.Json 10.0.3
SDK
- Microsoft.NETCore.App 1.1.2