Skip to content

Commit 4f31f7e

Browse files
committed
Added Restsharp.UWP project
Adjust RestSharp code with #defines as some .Net namespaces/classes/methods aren't available when targeting UWP.
1 parent 0ef81fd commit 4f31f7e

30 files changed

+15435
-46
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
32
<packages>
4-
<package id="NUnit" version="2.6.4" targetFramework="net40" />
3+
<package id="NUnit" version="2.6.4" targetFramework="net4" />
54
</packages>

RestSharp.Tests/packages.config

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
32
<packages>
4-
<package id="NUnit" version="2.6.4" targetFramework="net35" />
5-
<package id="SimpleJson" version="0.38.0" targetFramework="net35" />
3+
<package id="NUnit" version="2.6.4" targetFramework="net35" />
4+
<package id="SimpleJson" version="0.38.0" targetFramework="net35" />
65
</packages>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("RestSharp.UWP")]
9+
10+
11+
// Version information for an assembly consists of the following four values:
12+
//
13+
// Major Version
14+
// Minor Version
15+
// Build Number
16+
// Revision
17+
//
18+
// You can specify all the values or you can default the Build and Revision Numbers
19+
// by using the '*' as shown below:
20+
// [assembly: AssemblyVersion("1.0.*")]
21+
[assembly: ComVisible(false)]
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
This file contains Runtime Directives, specifications about types your application accesses
4+
through reflection and other dynamic code patterns. Runtime Directives are used to control the
5+
.NET Native optimizer and ensure that it does not remove code accessed by your library. If your
6+
library does not do any reflection, then you generally do not need to edit this file. However,
7+
if your library reflects over types, especially types passed to it or derived from its types,
8+
then you should write Runtime Directives.
9+
10+
The most common use of reflection in libraries is to discover information about types passed
11+
to the library. Runtime Directives have three ways to express requirements on types passed to
12+
your library.
13+
14+
1. Parameter, GenericParameter, TypeParameter, TypeEnumerableParameter
15+
Use these directives to reflect over types passed as a parameter.
16+
17+
2. SubTypes
18+
Use a SubTypes directive to reflect over types derived from another type.
19+
20+
3. AttributeImplies
21+
Use an AttributeImplies directive to indicate that your library needs to reflect over
22+
types or methods decorated with an attribute.
23+
24+
For more information on writing Runtime Directives for libraries, please visit
25+
http://go.microsoft.com/fwlink/?LinkID=391919
26+
-->
27+
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
28+
<Library Name="RestSharp.UWP">
29+
30+
<!-- add directives for your library here -->
31+
32+
</Library>
33+
</Directives>

0 commit comments

Comments
 (0)