PortableRest 4.0.0

.NET Standard 2.0
There is a newer prerelease version of this package available.
See the version list below for details.
NuGet\Install-Package PortableRest -Version 4.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
dotnet add package PortableRest --version 4.0.0
<PackageReference Include="PortableRest" Version="4.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PortableRest --version 4.0.0
#r "nuget: PortableRest, 4.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install PortableRest as a Cake Addin
#addin nuget:?package=PortableRest&version=4.0.0

// Install PortableRest as a Cake Tool
#tool nuget:?package=PortableRest&version=4.0.0

A library for building REST API client wrappers to be used by .NET Standard 2.0 apps.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (13)

Showing the top 5 NuGet packages that depend on PortableRest:

Package Downloads

Curiously, Bing does not provide a framework for accessing their REST APIs in .NET. This library attempts to solve that problem, with a PCL that works on .NET 4.5, Windows 8.x, Windows Phone 8, and Mono.


A Portable Class Library implementation of the New Relic REST API. Powered by PortableRest. Supports .NET 4.5, Windows Phone 8, and Windows 8.x. This project is not endorsed or supported by New Relic. NOTE: You may NOT use this library to build applications that replicate the functionality of http://bit.ly/newrelicalerts for sale in the Windows Phone 8 or Windows 8.x stores.


This package has been deprecated, because the core library is being signed again (per Microsoft OSS standards). Please use the PortableRest package instead.


.NET wrapper for Wistia's API


A Portable Class Library implementation of the Xbox Music API, powered by PortableRest. (.NET 4.5, Windows Phone 8, and Windows 8.x)

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.1.0-CI-20220725-160035 351 7/25/2022
4.1.0-CI-20201113-175637 1,687 11/13/2020
4.1.0-CI-20200529-152344 2,287 5/29/2020
4.1.0-CI-20200528-221935 348 5/28/2020
4.1.0-CI-20200528-213121 338 5/28/2020
4.1.0-CI-20200528-192624 340 5/28/2020
4.1.0-CI-20200527-232655 396 5/27/2020
4.1.0-CI-20200527-222425 383 5/27/2020
4.1.0-CI-20200527-221340 366 5/27/2020
4.0.1-CI-20191119-191939 618 11/19/2019
4.0.1-CI-20191119-191316 313 11/19/2019
4.0.0 4,538 11/13/2019
4.0.0-beta1.12 1,861 12/9/2017
4.0.0-alpha1 1,217 6/10/2017
3.1.0-beta7 2,282 10/10/2016
3.1.0-beta6 984 9/13/2016
3.1.0-beta5 954 9/10/2016
3.1.0-Beta4 1,819 11/30/2015
3.1.0-Beta3 1,314 11/30/2015
3.1.0-Beta2a 1,175 11/16/2015
3.1.0-Beta2 1,055 11/16/2015
3.1.0-Beta1 1,258 8/27/2014
3.0.1 65,918 8/16/2014
3.0.0 14,562 8/15/2014
3.0.0-RC12 3,387 8/7/2014
2.5.4 5,676 4/17/2014
2.5.3 1,142 4/15/2014
2.5.2 1,126 4/15/2014
2.5.1 1,125 4/13/2014
2.4.2 1,180 4/5/2014
2.4.1 3,108 1/8/2014
2.4.0 1,040 1/5/2014
2.3.0 1,377 12/21/2013
2.1.2 1,210 11/27/2013
2.1.1 1,833 11/23/2013
2.1.0 1,052 11/19/2013
2.0.0 1,601 10/27/2013

 • .NET Standard 2.0 support.
 • Back to strong-name signing, per Microsoft's OSS reccomendations.

 • Multipart/form-data support.
 • .NET Standard 1.1 Support.
 • Now uses a static HttpClient internal instance. (fixes http://aspnetmonsters.com/2016/08/2016-08-27-httpclientwrong/)

 • Tons of bug fixes.
 • Improved the way PortableRest handles parameters being sent over the wire.
 • Added constructor overload that accepts a custom HttpMessageHandler for all requests the HttpClient makes.
 • Added support for using the AsyncOAuth NuGet package for leveraging OAuth in your requests.
 • Added support for specifying the JsonSerializerSettings on a client-wide or per-request basis, with request-specific settings taking precedence.
 • Enhanced the SendAsync method to pass exceptions thrown by the serializer into the RestResponse.
 • The serializer now strips namespaces from XML payloads before attempting to de-serialize. You may need to update your objects to [DataContract(Namespace="")] if you use XML-based Rest services.
 • WARNING: Strong name signing is removed in this version. See the PortableRest.Signed package for those needing SNK support (but you will not be able to use AsyncOAuth, as it is not signed).

 • New generic and non-generic SendAsync() methods that return a RestResponse with more detailed information.
 • Fixed an issue where the Async call can deadlock in certain situations.
 • Added CancellationToken support.
 • Windows Phone 8.1 support.

 • RestClient.CookieContainer property to share cookies between requests.
 • (Breaking) Reorganized namespaces.
 • Added more documentation.

 • Added ability to set encoding on individual parameters.
 • Added request-specific headers for OAuth compatibility.
 • Added RestClient.SetUserAgent()to set the UserAgent for you.

 • Triumphant return of SL5 support.
 • Better documentation.
 • RestClient.ExecuteAsync can return the raw string.
 • Misc. bug fixes.

 • Adds RestRequest.AddQueryString().
 • Updated minimum package references for Mono-compatible licenses.

 • Removed support for Silverlight due to Microsoft's new Reflection framework on .NET 4.5.
 • Added initial support for submitting XML payloads.
 • Strong-name signed the assembly so it can be used in strong-name signed projects.

 1.2: Updated to latest packages, include Microsoft.Bcl.Build directly to help with app.config issues.
 1.1: Compiled to HttpClient 2.2.
 1.0.8: Compile to new dependencies.
 1.0.6: Update based on changes to HttpClient.Compression.
 1.0.5: Added Compression support.
 1.0.4-alpha: Added basic POST support, &amp; updated XML deserialization.
 1.0.3: Added XML deserialization with DataContracts.
 1.0.0: First release.