Yes, you need to add a reference to
System.Net.Http.Formatting.dll
This can be found in the extensions assemblies area.
A good way of achieving this is by adding the NuGet package Microsoft.AspNet.WebApi.Client
to your project.
More Related Contents:
- What is the overhead of creating a new HttpClient per call in a WebAPI client?
- .NET HttpClient. How to POST string value?
- Make Https call using HttpClient
- How to write a JSON file in C#?
- Failed to serialize the response in Web API with Json
- Adding Http Headers to HttpClient
- Web API Put Request generates an Http 405 Method Not Allowed error
- What is the difference between PreserveReferencesHandling and ReferenceLoopHandling in Json.Net?
- Set default global json serializer settings
- Complex type is getting null in a ApiController parameter
- ASP.NET WebApi: how to perform a multipart post with file upload using WebApi HttpClient
- JSON serialize properties on class inheriting list [duplicate]
- Post byte array to Web API server using HttpClient
- How to generate and auto increment Id with Entity Framework
- Pass multiple complex objects to a post/put Web API method
- ASP.NET Core API only returning first result of list
- How do I pass an object to HttpClient.PostAsync and serialize as a JSON body?
- Strings sent through Web API’s gets wrapped in quotes
- How to prevent a single object property from being converted to a DateTime when it is a string
- Return Json, but it includes backward slashes “\”, which I don’t want
- Deserialize JSON to Array or List with HTTPClient .ReadAsAsync using .NET 4.0 Task pattern
- JSON Deserialization – String Is Automatically Converted To Int
- Web API complex parameter properties are all null
- Is there a way in Json.NET serialization to distinguish between “null because not present” and “null because null”?
- Using Serializable attribute on Model in WebAPI
- parse JSON using json.net c# [closed]
- Entity Framework change connection at runtime
- JSON formatter in C#?
- Parsing a JSON file with .NET core 3.0/System.text.Json
- C# JSON custom serialization