From 545bf06e9efea428c0e65f71a7ec146e4c7a352f Mon Sep 17 00:00:00 2001 From: Haacked Date: Tue, 10 Sep 2013 10:13:47 -0700 Subject: [PATCH 1/2] Fix broken silverlight build --- RestSharp/Deserializers/XmlDeserializer.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/RestSharp/Deserializers/XmlDeserializer.cs b/RestSharp/Deserializers/XmlDeserializer.cs index 64634b31c..2b9d27119 100644 --- a/RestSharp/Deserializers/XmlDeserializer.cs +++ b/RestSharp/Deserializers/XmlDeserializer.cs @@ -263,6 +263,7 @@ private void Map(object x, XElement root) private static bool TryGetFromString(string inputString, out object result, Type type) { +#if !SILVERLIGHT var converter = TypeDescriptor.GetConverter(type); if (converter.CanConvertFrom(typeof(string))) { @@ -271,6 +272,10 @@ private static bool TryGetFromString(string inputString, out object result, Type } result = null; return false; +#else + result = null; + return false; +#endif } private void PopulateListFromElements(Type t, IEnumerable elements, IList list) From 67b2d79a444835a96fd1a52faa0e5d17c9f0b370 Mon Sep 17 00:00:00 2001 From: Haacked Date: Tue, 10 Sep 2013 10:13:58 -0700 Subject: [PATCH 2/2] Suppress warnings about missing xml comments --- RestSharp.IntegrationTests/RestSharp.IntegrationTests.csproj | 1 + RestSharp.Net4/RestSharp.Net4.csproj | 1 + RestSharp.Silverlight/RestSharp.Silverlight.csproj | 1 + RestSharp.Tests/RestSharp.Tests.csproj | 3 ++- RestSharp.WindowsPhone/RestSharp.WindowsPhone.csproj | 1 + RestSharp/RestSharp.csproj | 1 + 6 files changed, 7 insertions(+), 1 deletion(-) diff --git a/RestSharp.IntegrationTests/RestSharp.IntegrationTests.csproj b/RestSharp.IntegrationTests/RestSharp.IntegrationTests.csproj index 83c7da106..679361fd1 100644 --- a/RestSharp.IntegrationTests/RestSharp.IntegrationTests.csproj +++ b/RestSharp.IntegrationTests/RestSharp.IntegrationTests.csproj @@ -39,6 +39,7 @@ 4 AllRules.ruleset bin\Release\RestSharp.IntegrationTests.xml + CS1591 diff --git a/RestSharp.Net4/RestSharp.Net4.csproj b/RestSharp.Net4/RestSharp.Net4.csproj index 18d5d52ff..f9aa2dd31 100644 --- a/RestSharp.Net4/RestSharp.Net4.csproj +++ b/RestSharp.Net4/RestSharp.Net4.csproj @@ -33,6 +33,7 @@ prompt 4 bin\Release\RestSharp.xml + CS1591 diff --git a/RestSharp.Silverlight/RestSharp.Silverlight.csproj b/RestSharp.Silverlight/RestSharp.Silverlight.csproj index d833d191a..f7907f701 100644 --- a/RestSharp.Silverlight/RestSharp.Silverlight.csproj +++ b/RestSharp.Silverlight/RestSharp.Silverlight.csproj @@ -48,6 +48,7 @@ prompt 4 Bin\Release\RestSharp.Silverlight.xml + CS1591 diff --git a/RestSharp.Tests/RestSharp.Tests.csproj b/RestSharp.Tests/RestSharp.Tests.csproj index e2c466c47..83dcb7536 100644 --- a/RestSharp.Tests/RestSharp.Tests.csproj +++ b/RestSharp.Tests/RestSharp.Tests.csproj @@ -53,7 +53,8 @@ prompt 4 AllRules.ruleset - bin\Release\RestSharp.Tests.xml + + diff --git a/RestSharp.WindowsPhone/RestSharp.WindowsPhone.csproj b/RestSharp.WindowsPhone/RestSharp.WindowsPhone.csproj index e2f61cbd7..d3f2c1688 100644 --- a/RestSharp.WindowsPhone/RestSharp.WindowsPhone.csproj +++ b/RestSharp.WindowsPhone/RestSharp.WindowsPhone.csproj @@ -43,6 +43,7 @@ prompt 4 Bin\Release\RestSharp.WindowsPhone.xml + CS1591 diff --git a/RestSharp/RestSharp.csproj b/RestSharp/RestSharp.csproj index c701ed09c..3cb98019b 100644 --- a/RestSharp/RestSharp.csproj +++ b/RestSharp/RestSharp.csproj @@ -56,6 +56,7 @@ 4 AllRules.ruleset bin\Release\RestSharp.xml + CS1591