Skip to content

Commit 9c8d1cd

Browse files
committed
Merge pull request #418 from restsharp/silverlight-fixes
Silverlight fixes
2 parents 90704f2 + 67b2d79 commit 9c8d1cd

File tree

7 files changed

+12
-1
lines changed

7 files changed

+12
-1
lines changed

RestSharp.IntegrationTests/RestSharp.IntegrationTests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
<WarningLevel>4</WarningLevel>
4040
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
4141
<DocumentationFile>bin\Release\RestSharp.IntegrationTests.xml</DocumentationFile>
42+
<NoWarn>CS1591</NoWarn>
4243
</PropertyGroup>
4344
<ItemGroup>
4445
<Reference Include="System" />

RestSharp.Net4/RestSharp.Net4.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
<ErrorReport>prompt</ErrorReport>
3434
<WarningLevel>4</WarningLevel>
3535
<DocumentationFile>bin\Release\RestSharp.xml</DocumentationFile>
36+
<NoWarn>CS1591</NoWarn>
3637
</PropertyGroup>
3738
<ItemGroup>
3839
<Reference Include="System" />

RestSharp.Silverlight/RestSharp.Silverlight.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
<ErrorReport>prompt</ErrorReport>
4949
<WarningLevel>4</WarningLevel>
5050
<DocumentationFile>Bin\Release\RestSharp.Silverlight.xml</DocumentationFile>
51+
<NoWarn>CS1591</NoWarn>
5152
</PropertyGroup>
5253
<ItemGroup>
5354
<Reference Include="mscorlib" />

RestSharp.Tests/RestSharp.Tests.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
<ErrorReport>prompt</ErrorReport>
5454
<WarningLevel>4</WarningLevel>
5555
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
56-
<DocumentationFile>bin\Release\RestSharp.Tests.xml</DocumentationFile>
56+
<DocumentationFile>
57+
</DocumentationFile>
5758
</PropertyGroup>
5859
<ItemGroup>
5960
<Reference Include="Microsoft.Build.Framework" />

RestSharp.WindowsPhone/RestSharp.WindowsPhone.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
<ErrorReport>prompt</ErrorReport>
4444
<WarningLevel>4</WarningLevel>
4545
<DocumentationFile>Bin\Release\RestSharp.WindowsPhone.xml</DocumentationFile>
46+
<NoWarn>CS1591</NoWarn>
4647
</PropertyGroup>
4748
<ItemGroup>
4849
<Reference Include="mscorlib" />

RestSharp/Deserializers/XmlDeserializer.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ private void Map(object x, XElement root)
263263

264264
private static bool TryGetFromString(string inputString, out object result, Type type)
265265
{
266+
#if !SILVERLIGHT
266267
var converter = TypeDescriptor.GetConverter(type);
267268
if (converter.CanConvertFrom(typeof(string)))
268269
{
@@ -271,6 +272,10 @@ private static bool TryGetFromString(string inputString, out object result, Type
271272
}
272273
result = null;
273274
return false;
275+
#else
276+
result = null;
277+
return false;
278+
#endif
274279
}
275280

276281
private void PopulateListFromElements(Type t, IEnumerable<XElement> elements, IList list)

RestSharp/RestSharp.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
<WarningLevel>4</WarningLevel>
5757
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
5858
<DocumentationFile>bin\Release\RestSharp.xml</DocumentationFile>
59+
<NoWarn>CS1591</NoWarn>
5960
</PropertyGroup>
6061
<ItemGroup>
6162
<Reference Include="Microsoft.Build.Framework" />

0 commit comments

Comments
 (0)