Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions RestSharp.WindowsPhone8/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("RestSharp.WindowsPhone8")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("d6e5e03c-bbac-4d6a-8170-051b8225147c")]
353 changes: 353 additions & 0 deletions RestSharp.WindowsPhone8/RestSharp.WindowsPhone8.csproj

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions RestSharp.WindowsPhone8/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
</packages>
31 changes: 31 additions & 0 deletions RestSharp.sln
Original file line number Diff line number Diff line change
Expand Up @@ -35,87 +35,118 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Meta", "Meta", "{C5B02FAA-6
readme.txt = readme.txt
releasenotes.markdown = releasenotes.markdown
EndProjectSection
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RestSharp.WindowsPhone8", "RestSharp.WindowsPhone8\RestSharp.WindowsPhone8.csproj", "{35B2AFEA-0A2A-4E13-B946-60B7DD0D0B34}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|ARM = Debug|ARM
Debug|Mixed Platforms = Debug|Mixed Platforms
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|ARM = Release|ARM
Release|Mixed Platforms = Release|Mixed Platforms
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2ECECFBF-5F3E-40EE-A963-72336DC7ABE2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2ECECFBF-5F3E-40EE-A963-72336DC7ABE2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2ECECFBF-5F3E-40EE-A963-72336DC7ABE2}.Debug|ARM.ActiveCfg = Debug|Any CPU
{2ECECFBF-5F3E-40EE-A963-72336DC7ABE2}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{2ECECFBF-5F3E-40EE-A963-72336DC7ABE2}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{2ECECFBF-5F3E-40EE-A963-72336DC7ABE2}.Debug|x86.ActiveCfg = Debug|Any CPU
{2ECECFBF-5F3E-40EE-A963-72336DC7ABE2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2ECECFBF-5F3E-40EE-A963-72336DC7ABE2}.Release|Any CPU.Build.0 = Release|Any CPU
{2ECECFBF-5F3E-40EE-A963-72336DC7ABE2}.Release|ARM.ActiveCfg = Release|Any CPU
{2ECECFBF-5F3E-40EE-A963-72336DC7ABE2}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{2ECECFBF-5F3E-40EE-A963-72336DC7ABE2}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{2ECECFBF-5F3E-40EE-A963-72336DC7ABE2}.Release|x86.ActiveCfg = Release|Any CPU
{1464E4AC-18BB-4F23-8A0B-68196F9E1871}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1464E4AC-18BB-4F23-8A0B-68196F9E1871}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1464E4AC-18BB-4F23-8A0B-68196F9E1871}.Debug|ARM.ActiveCfg = Debug|Any CPU
{1464E4AC-18BB-4F23-8A0B-68196F9E1871}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{1464E4AC-18BB-4F23-8A0B-68196F9E1871}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{1464E4AC-18BB-4F23-8A0B-68196F9E1871}.Debug|x86.ActiveCfg = Debug|Any CPU
{1464E4AC-18BB-4F23-8A0B-68196F9E1871}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1464E4AC-18BB-4F23-8A0B-68196F9E1871}.Release|Any CPU.Build.0 = Release|Any CPU
{1464E4AC-18BB-4F23-8A0B-68196F9E1871}.Release|ARM.ActiveCfg = Release|Any CPU
{1464E4AC-18BB-4F23-8A0B-68196F9E1871}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{1464E4AC-18BB-4F23-8A0B-68196F9E1871}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{1464E4AC-18BB-4F23-8A0B-68196F9E1871}.Release|x86.ActiveCfg = Release|Any CPU
{47D3EBB9-0300-4AF8-BAC5-740D51454A63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{47D3EBB9-0300-4AF8-BAC5-740D51454A63}.Debug|Any CPU.Build.0 = Debug|Any CPU
{47D3EBB9-0300-4AF8-BAC5-740D51454A63}.Debug|ARM.ActiveCfg = Debug|Any CPU
{47D3EBB9-0300-4AF8-BAC5-740D51454A63}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{47D3EBB9-0300-4AF8-BAC5-740D51454A63}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{47D3EBB9-0300-4AF8-BAC5-740D51454A63}.Debug|x86.ActiveCfg = Debug|Any CPU
{47D3EBB9-0300-4AF8-BAC5-740D51454A63}.Release|Any CPU.ActiveCfg = Release|Any CPU
{47D3EBB9-0300-4AF8-BAC5-740D51454A63}.Release|Any CPU.Build.0 = Release|Any CPU
{47D3EBB9-0300-4AF8-BAC5-740D51454A63}.Release|ARM.ActiveCfg = Release|Any CPU
{47D3EBB9-0300-4AF8-BAC5-740D51454A63}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{47D3EBB9-0300-4AF8-BAC5-740D51454A63}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{47D3EBB9-0300-4AF8-BAC5-740D51454A63}.Release|x86.ActiveCfg = Release|Any CPU
{11F84600-0978-48B9-A28F-63B3781E54B3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{11F84600-0978-48B9-A28F-63B3781E54B3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{11F84600-0978-48B9-A28F-63B3781E54B3}.Debug|ARM.ActiveCfg = Debug|Any CPU
{11F84600-0978-48B9-A28F-63B3781E54B3}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{11F84600-0978-48B9-A28F-63B3781E54B3}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{11F84600-0978-48B9-A28F-63B3781E54B3}.Debug|x86.ActiveCfg = Debug|Any CPU
{11F84600-0978-48B9-A28F-63B3781E54B3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{11F84600-0978-48B9-A28F-63B3781E54B3}.Release|Any CPU.Build.0 = Release|Any CPU
{11F84600-0978-48B9-A28F-63B3781E54B3}.Release|ARM.ActiveCfg = Release|Any CPU
{11F84600-0978-48B9-A28F-63B3781E54B3}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{11F84600-0978-48B9-A28F-63B3781E54B3}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{11F84600-0978-48B9-A28F-63B3781E54B3}.Release|x86.ActiveCfg = Release|Any CPU
{F4D48DF6-316E-4963-B5C1-59CA39B431B7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F4D48DF6-316E-4963-B5C1-59CA39B431B7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F4D48DF6-316E-4963-B5C1-59CA39B431B7}.Debug|ARM.ActiveCfg = Debug|Any CPU
{F4D48DF6-316E-4963-B5C1-59CA39B431B7}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{F4D48DF6-316E-4963-B5C1-59CA39B431B7}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{F4D48DF6-316E-4963-B5C1-59CA39B431B7}.Debug|x86.ActiveCfg = Debug|Any CPU
{F4D48DF6-316E-4963-B5C1-59CA39B431B7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F4D48DF6-316E-4963-B5C1-59CA39B431B7}.Release|Any CPU.Build.0 = Release|Any CPU
{F4D48DF6-316E-4963-B5C1-59CA39B431B7}.Release|ARM.ActiveCfg = Release|Any CPU
{F4D48DF6-316E-4963-B5C1-59CA39B431B7}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{F4D48DF6-316E-4963-B5C1-59CA39B431B7}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{F4D48DF6-316E-4963-B5C1-59CA39B431B7}.Release|x86.ActiveCfg = Release|Any CPU
{5FF943A5-260F-4042-B4CE-C4977BAD4EBB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5FF943A5-260F-4042-B4CE-C4977BAD4EBB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5FF943A5-260F-4042-B4CE-C4977BAD4EBB}.Debug|ARM.ActiveCfg = Debug|Any CPU
{5FF943A5-260F-4042-B4CE-C4977BAD4EBB}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{5FF943A5-260F-4042-B4CE-C4977BAD4EBB}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{5FF943A5-260F-4042-B4CE-C4977BAD4EBB}.Debug|x86.ActiveCfg = Debug|Any CPU
{5FF943A5-260F-4042-B4CE-C4977BAD4EBB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5FF943A5-260F-4042-B4CE-C4977BAD4EBB}.Release|Any CPU.Build.0 = Release|Any CPU
{5FF943A5-260F-4042-B4CE-C4977BAD4EBB}.Release|ARM.ActiveCfg = Release|Any CPU
{5FF943A5-260F-4042-B4CE-C4977BAD4EBB}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{5FF943A5-260F-4042-B4CE-C4977BAD4EBB}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{5FF943A5-260F-4042-B4CE-C4977BAD4EBB}.Release|x86.ActiveCfg = Release|Any CPU
{CCC30138-3D68-44D8-AF1A-D22F769EE8DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CCC30138-3D68-44D8-AF1A-D22F769EE8DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CCC30138-3D68-44D8-AF1A-D22F769EE8DC}.Debug|ARM.ActiveCfg = Debug|Any CPU
{CCC30138-3D68-44D8-AF1A-D22F769EE8DC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{CCC30138-3D68-44D8-AF1A-D22F769EE8DC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{CCC30138-3D68-44D8-AF1A-D22F769EE8DC}.Debug|x86.ActiveCfg = Debug|Any CPU
{CCC30138-3D68-44D8-AF1A-D22F769EE8DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CCC30138-3D68-44D8-AF1A-D22F769EE8DC}.Release|Any CPU.Build.0 = Release|Any CPU
{CCC30138-3D68-44D8-AF1A-D22F769EE8DC}.Release|ARM.ActiveCfg = Release|Any CPU
{CCC30138-3D68-44D8-AF1A-D22F769EE8DC}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{CCC30138-3D68-44D8-AF1A-D22F769EE8DC}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{CCC30138-3D68-44D8-AF1A-D22F769EE8DC}.Release|x86.ActiveCfg = Release|Any CPU
{35B2AFEA-0A2A-4E13-B946-60B7DD0D0B34}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{35B2AFEA-0A2A-4E13-B946-60B7DD0D0B34}.Debug|Any CPU.Build.0 = Debug|Any CPU
{35B2AFEA-0A2A-4E13-B946-60B7DD0D0B34}.Debug|ARM.ActiveCfg = Debug|ARM
{35B2AFEA-0A2A-4E13-B946-60B7DD0D0B34}.Debug|ARM.Build.0 = Debug|ARM
{35B2AFEA-0A2A-4E13-B946-60B7DD0D0B34}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{35B2AFEA-0A2A-4E13-B946-60B7DD0D0B34}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{35B2AFEA-0A2A-4E13-B946-60B7DD0D0B34}.Debug|x86.ActiveCfg = Debug|Any CPU
{35B2AFEA-0A2A-4E13-B946-60B7DD0D0B34}.Release|Any CPU.ActiveCfg = Release|Any CPU
{35B2AFEA-0A2A-4E13-B946-60B7DD0D0B34}.Release|Any CPU.Build.0 = Release|Any CPU
{35B2AFEA-0A2A-4E13-B946-60B7DD0D0B34}.Release|ARM.ActiveCfg = Release|ARM
{35B2AFEA-0A2A-4E13-B946-60B7DD0D0B34}.Release|ARM.Build.0 = Release|ARM
{35B2AFEA-0A2A-4E13-B946-60B7DD0D0B34}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{35B2AFEA-0A2A-4E13-B946-60B7DD0D0B34}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{35B2AFEA-0A2A-4E13-B946-60B7DD0D0B34}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
10 changes: 5 additions & 5 deletions RestSharp/Http.Async.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ private HttpWebRequest PutPostInternalAsync(string method, Action<HttpResponse>
{
ExecuteCallback(CreateErrorResponse(ex), callback);
}

return webRequest;
}

Expand All @@ -155,7 +155,7 @@ private void WriteRequestBodyAsync(HttpWebRequest webRequest, Action<HttpRespons

if (HasBody || HasFiles || AlwaysMultipartFormData)
{
#if !WINDOWS_PHONE
#if !WINDOWS_PHONE || WP8
webRequest.ContentLength = CalculateContentLength();
#endif
asyncResult = webRequest.BeginGetRequestStream(result => RequestStreamCallback(result, callback), webRequest);
Expand Down Expand Up @@ -238,7 +238,7 @@ private void RequestStreamCallback(IAsyncResult result, Action<HttpResponse> cal

private void SetTimeout(IAsyncResult asyncResult, TimeOutState timeOutState)
{
#if FRAMEWORK
#if FRAMEWORK || WP8
if (Timeout != 0)
{
ThreadPool.RegisterWaitForSingleObject(asyncResult.AsyncWaitHandle, new WaitOrTimerCallback(TimeoutCallback), timeOutState, Timeout, true);
Expand Down Expand Up @@ -343,7 +343,7 @@ partial void AddAsyncHeaderActions()
#if SILVERLIGHT
_restrictedHeaderActions.Add("Content-Length", (r, v) => r.ContentLength = Convert.ToInt64(v));
#endif
#if WINDOWS_PHONE
#if WINDOWS_PHONE && !WP8
// WP7 doesn't as of Beta doesn't support a way to set Content-Length either directly
// or indirectly
_restrictedHeaderActions.Add("Content-Length", (r, v) => { });
Expand All @@ -365,7 +365,7 @@ private HttpWebRequest ConfigureAsyncWebRequest(string method, Uri url)
webRequest.Method = method;

// make sure Content-Length header is always sent since default is -1
#if !WINDOWS_PHONE
#if !WINDOWS_PHONE || WP8
// WP7 doesn't as of Beta doesn't support a way to set this value either directly
// or indirectly
if(!HasFiles && !AlwaysMultipartFormData)
Expand Down
6 changes: 3 additions & 3 deletions RestSharp/IRestClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
using System.Net;
using System.Collections.Generic;
using System.Security.Cryptography.X509Certificates;
#if NET4 || MONODROID || MONOTOUCH
#if NET4 || WP8 || MONODROID || MONOTOUCH
using System.Threading;
using System.Threading.Tasks;
#endif
Expand Down Expand Up @@ -123,8 +123,8 @@ public interface IRestClient
IRestResponse<T> ExecuteAsPost<T>(IRestRequest request, string httpMethod) where T : new();
#endif

#if NET4 || MONODROID || MONOTOUCH
/// <summary>
#if NET4 || WP8 || MONODROID || MONOTOUCH
/// <summary>
/// Executes the request and callback asynchronously, authenticating if needed
/// </summary>
/// <typeparam name="T">Target deserialization type</typeparam>
Expand Down
10 changes: 5 additions & 5 deletions RestSharp/RestClient.Async.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading;
#if NET4 || MONODROID || MONOTOUCH
#if NET4 || WP8 || MONODROID || MONOTOUCH
using System.Threading.Tasks;
#endif
using System.Text;
Expand Down Expand Up @@ -158,8 +158,8 @@ private void DeserializeResponse<T>(IRestRequest request, Action<IRestResponse<T
callback(restResponse, asyncHandle);
}

#if NET4 || MONODROID || MONOTOUCH
/// <summary>
#if NET4 || WP8 || MONODROID || MONOTOUCH
/// <summary>
/// Executes a GET-style request asynchronously, authenticating if needed
/// </summary>
/// <typeparam name="T">Target deserialization type</typeparam>
Expand Down Expand Up @@ -236,7 +236,7 @@ public virtual Task<IRestResponse<T>> ExecuteTaskAsync<T>(IRestRequest request,
throw new ArgumentNullException("request");
}

var taskCompletionSource = new TaskCompletionSource<IRestResponse<T>>();
var taskCompletionSource = new TaskCompletionSource<IRestResponse<T>>(TaskContinuationOptions.HideScheduler);

try
{
Expand Down Expand Up @@ -345,7 +345,7 @@ public virtual Task<IRestResponse> ExecuteTaskAsync(IRestRequest request, Cancel
throw new ArgumentNullException("request");
}

var taskCompletionSource = new TaskCompletionSource<IRestResponse>();
var taskCompletionSource = new TaskCompletionSource<IRestResponse>(TaskContinuationOptions.HideScheduler);

try
{
Expand Down
2 changes: 1 addition & 1 deletion RestSharp/RestClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public partial class RestClient : IRestClient
/// </summary>
public RestClient()
{
#if WINDOWS_PHONE
#if WINDOWS_PHONE && !WP8
UseSynchronizationContext = true;
#endif
ContentHandlers = new Dictionary<string, IDeserializer>();
Expand Down
2 changes: 1 addition & 1 deletion RestSharp/SharedAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@

class SharedAssembylInfo
{
public const string Version = "104.3.3";
public const string Version = "104.3.4";
}
10 changes: 9 additions & 1 deletion package.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
if not exist Download\Net4 mkdir Download\Net4\
if not exist Download\Silverlight mkdir Download\Silverlight\
if not exist Download\WindowsPhone mkdir Download\WindowsPhone\
if not exist Download\WindowsPhone8 mkdir Download\WindowsPhone8\
if not exist Download\package\lib\net35 mkdir Download\package\lib\net35\
if not exist Download\package\lib\net35-client mkdir Download\package\lib\net35-client\
if not exist Download\package\lib\net4 mkdir Download\package\lib\net4\
if not exist Download\package\lib\net4-client mkdir Download\package\lib\net4-client\
if not exist Download\package\lib\sl4-wp71 mkdir Download\package\lib\sl4-wp71\
if not exist Download\package\lib\sl4 mkdir Download\package\lib\sl4\
if not exist Download\package\lib\wp8 mkdir Download\package\lib\wp8\

copy RestSharp\bin\Release\RestSharp.dll Download\
copy RestSharp\bin\Release\RestSharp.xml Download\
Expand All @@ -22,6 +24,9 @@ copy RestSharp.Silverlight\bin\Release\RestSharp.Silverlight.xml Download\Silver
copy RestSharp.WindowsPhone\bin\Release\RestSharp.WindowsPhone.dll Download\WindowsPhone\
copy RestSharp.WindowsPhone\bin\Release\RestSharp.WindowsPhone.xml Download\WindowsPhone\

copy RestSharp.WindowsPhone8\bin\Release\RestSharp.WindowsPhone8.dll Download\WindowsPhone8\
copy RestSharp.WindowsPhone8\bin\Release\RestSharp.WindowsPhone8.xml Download\WindowsPhone8\

copy LICENSE.txt Download\
copy readme.txt Download\
copy readme.txt Download\package\
Expand All @@ -34,6 +39,7 @@ copy RestSharp.Net4\bin\Release\RestSharp.dll Download\Package\lib\net4-client\

copy RestSharp.Silverlight\bin\Release\RestSharp.Silverlight.dll Download\Package\lib\sl4\
copy RestSharp.WindowsPhone\bin\Release\RestSharp.WindowsPhone.dll Download\Package\lib\sl4-wp71\
copy RestSharp.WindowsPhone8\bin\Release\RestSharp.WindowsPhone8.dll Download\Package\lib\wp8\

copy RestSharp\bin\Release\RestSharp.xml Download\Package\lib\net35\
copy RestSharp\bin\Release\RestSharp.xml Download\Package\lib\net35-client\
Expand All @@ -44,6 +50,8 @@ copy RestSharp.Net4\bin\Release\RestSharp.xml Download\Package\lib\net4-client\
copy RestSharp.Silverlight\bin\Release\RestSharp.Silverlight.xml Download\Package\lib\sl4\
copy RestSharp.WindowsPhone\bin\Release\RestSharp.WindowsPhone.xml Download\Package\lib\sl4-wp71\

copy RestSharp.WindowsPhone8\bin\Release\RestSharp.WindowsPhone8.xml Download\Package\lib\wp8\

tools\nuget.exe update -self
tools\nuget.exe pack restsharp-computed.nuspec -BasePath Download\Package -Output Download
rm restsharp-computed.nuspec
del restsharp-computed.nuspec