From 6143ee331b235c8f182d5f8c5378ed5b3ce1fe16 Mon Sep 17 00:00:00 2001 From: Elizabeth Schneider Date: Thu, 27 Oct 2016 22:50:34 -0600 Subject: [PATCH 1/2] nuget update (#250) --- src/Tests/Tests.csproj | 32 ++----------------- src/Tests/packages.config | 4 +-- .../ZendeskApi_v2_Package.csproj | 8 ++--- src/ZendeskApi_v2_Package/packages.config | 2 +- 4 files changed, 7 insertions(+), 39 deletions(-) diff --git a/src/Tests/Tests.csproj b/src/Tests/Tests.csproj index ed29e0f9..f03da3c4 100644 --- a/src/Tests/Tests.csproj +++ b/src/Tests/Tests.csproj @@ -57,40 +57,12 @@ 0 - - ..\packages\NUnit3TestAdapter.3.4.1\lib\Mono.Cecil.dll - True - - - ..\packages\NUnit3TestAdapter.3.4.1\lib\Mono.Cecil.Mdb.dll - True - - - ..\packages\NUnit3TestAdapter.3.4.1\lib\Mono.Cecil.Pdb.dll - True - - - ..\packages\NUnit3TestAdapter.3.4.1\lib\Mono.Cecil.Rocks.dll - True - ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll True - - ..\packages\NUnit3TestAdapter.3.4.1\lib\nunit.engine.dll - True - - - ..\packages\NUnit3TestAdapter.3.4.1\lib\nunit.engine.api.dll - True - - - ..\packages\NUnit.3.4.1\lib\net45\nunit.framework.dll - True - - - ..\packages\NUnit3TestAdapter.3.4.1\lib\NUnit3.TestAdapter.dll + + ..\packages\NUnit.3.5.0\lib\net45\nunit.framework.dll True diff --git a/src/Tests/packages.config b/src/Tests/packages.config index ff7775cc..1294c90a 100644 --- a/src/Tests/packages.config +++ b/src/Tests/packages.config @@ -1,6 +1,6 @@  - - + + \ No newline at end of file diff --git a/src/ZendeskApi_v2_Package/ZendeskApi_v2_Package.csproj b/src/ZendeskApi_v2_Package/ZendeskApi_v2_Package.csproj index 8fa9485d..669e0099 100644 --- a/src/ZendeskApi_v2_Package/ZendeskApi_v2_Package.csproj +++ b/src/ZendeskApi_v2_Package/ZendeskApi_v2_Package.csproj @@ -62,7 +62,6 @@ - @@ -92,9 +91,6 @@ - - - @@ -108,11 +104,11 @@ - + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - + \ No newline at end of file diff --git a/src/ZendeskApi_v2_Package/packages.config b/src/ZendeskApi_v2_Package/packages.config index 9ed9b6b2..726a13af 100644 --- a/src/ZendeskApi_v2_Package/packages.config +++ b/src/ZendeskApi_v2_Package/packages.config @@ -1,4 +1,4 @@  - + \ No newline at end of file From 1fe9db79be8511bf4482e8fa2e2d82da02b8a037 Mon Sep 17 00:00:00 2001 From: Nick Coad Date: Fri, 28 Oct 2016 15:56:55 +1100 Subject: [PATCH 2/2] Included original Response in new WebException (#249) * Included original Response in new WebException * Fixed a bug with my solution --- src/ZendeskApi_v2/Core.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ZendeskApi_v2/Core.cs b/src/ZendeskApi_v2/Core.cs index 4da64b37..31d4eb23 100644 --- a/src/ZendeskApi_v2/Core.cs +++ b/src/ZendeskApi_v2/Core.cs @@ -564,7 +564,7 @@ private WebException GetWebException(string resource, object body, WebException headersMessage += originalWebException.Response.Headers; } - var wException = new WebException(originalWebException.Message + headersMessage, originalWebException); + var wException = new WebException(originalWebException.Message + headersMessage, originalWebException, originalWebException.Status, originalWebException.Response); wException.Data.Add("jsonException", error); return wException;