Skip to content

Commit fb9472b

Browse files
author
Michael Hallett
committed
added targeting for .net 4.5.1 and 4.5.2 framework editions
1 parent 47e3ed7 commit fb9472b

22 files changed

+2077
-6
lines changed

.nuget/RestSharp.Build.dll

-512 Bytes
Binary file not shown.

.nuget/Signed/RestSharp.Build.dll

-512 Bytes
Binary file not shown.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+

2+
namespace RestSharp.Extensions
3+
{
4+
public static partial class RestClientExtensions
5+
{
6+
public static RestResponse<dynamic> ExecuteDynamic(this IRestClient client, IRestRequest request)
7+
{
8+
var response = client.Execute<dynamic>(request);
9+
var generic = (RestResponse<dynamic>)response;
10+
dynamic content = SimpleJson.DeserializeObject(response.Content);
11+
12+
generic.Data = content;
13+
14+
return generic;
15+
}
16+
}
17+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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")]
9+
10+
// Setting ComVisible to false makes the types in this assembly not visible
11+
// to COM components. If you need to access a type in this assembly from
12+
// COM, set the ComVisible attribute to true on that type.
13+
[assembly: ComVisible(false)]
14+
15+
// The following GUID is for the ID of the typelib if this project is exposed to COM
16+
[assembly: Guid("97044cbf-6c9d-4b08-87e3-bf30fbde1933")]
17+
18+
#if SIGNED
19+
[assembly: InternalsVisibleTo("RestSharp.IntegrationTests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100fda57af14a288d46e3efea89617037585c4de57159cd536ca6dff792ea1d6addc665f2fccb4285413d9d44db5a1be87cb82686db200d16325ed9c42c89cd4824d8cc447f7cee2ac000924c3bceeb1b7fcb5cc1a3901785964d48ce14172001084134f4dcd9973c3776713b595443b1064bb53e2eeb924969244d354e46495e9d"),
20+
InternalsVisibleTo("RestSharp.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100fda57af14a288d46e3efea89617037585c4de57159cd536ca6dff792ea1d6addc665f2fccb4285413d9d44db5a1be87cb82686db200d16325ed9c42c89cd4824d8cc447f7cee2ac000924c3bceeb1b7fcb5cc1a3901785964d48ce14172001084134f4dcd9973c3776713b595443b1064bb53e2eeb924969244d354e46495e9d")]
21+
#else
22+
[assembly: InternalsVisibleTo("RestSharp.IntegrationTests"),
23+
InternalsVisibleTo("RestSharp.Tests")]
24+
#endif
Lines changed: 298 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,298 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6+
<ProductVersion>8.0.30703</ProductVersion>
7+
<SchemaVersion>2.0</SchemaVersion>
8+
<ProjectGuid>{EC77CB3A-A55C-4A00-8471-C9AADAE2EED4}</ProjectGuid>
9+
<OutputType>Library</OutputType>
10+
<AppDesignerFolder>Properties</AppDesignerFolder>
11+
<RootNamespace>RestSharp</RootNamespace>
12+
<AssemblyName>RestSharp</AssemblyName>
13+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
14+
<FileAlignment>512</FileAlignment>
15+
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
16+
<RestorePackages>true</RestorePackages>
17+
<TargetFrameworkProfile />
18+
</PropertyGroup>
19+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
20+
<DebugSymbols>true</DebugSymbols>
21+
<DebugType>full</DebugType>
22+
<Optimize>false</Optimize>
23+
<OutputPath>bin\DebugSigned\</OutputPath>
24+
<IntermediateOutputPath>obj\DebugSigned\</IntermediateOutputPath>
25+
<DefineConstants>TRACE;DEBUG;FRAMEWORK, NET4, SIGNED</DefineConstants>
26+
<ErrorReport>prompt</ErrorReport>
27+
<WarningLevel>4</WarningLevel>
28+
<DocumentationFile>bin\DebugSigned\RestSharp.xml</DocumentationFile>
29+
<NoWarn>1591,1584,1572,1574,1658</NoWarn>
30+
<Prefer32Bit>false</Prefer32Bit>
31+
</PropertyGroup>
32+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
33+
<DebugType>pdbonly</DebugType>
34+
<Optimize>true</Optimize>
35+
<OutputPath>bin\ReleaseSigned\</OutputPath>
36+
<IntermediateOutputPath>obj\ReleaseSigned\</IntermediateOutputPath>
37+
<DefineConstants>TRACE;FRAMEWORK, NET4, SIGNED</DefineConstants>
38+
<ErrorReport>prompt</ErrorReport>
39+
<WarningLevel>4</WarningLevel>
40+
<DocumentationFile>bin\ReleaseSigned\RestSharp.xml</DocumentationFile>
41+
<NoWarn>1591,1573,1658,1584,1574,1572</NoWarn>
42+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
43+
<Prefer32Bit>false</Prefer32Bit>
44+
</PropertyGroup>
45+
<PropertyGroup>
46+
<SignAssembly>true</SignAssembly>
47+
</PropertyGroup>
48+
<PropertyGroup>
49+
<AssemblyOriginatorKeyFile>..\RestSharp.snk</AssemblyOriginatorKeyFile>
50+
</PropertyGroup>
51+
<PropertyGroup>
52+
<DelaySign>false</DelaySign>
53+
</PropertyGroup>
54+
<ItemGroup>
55+
<Reference Include="System" />
56+
<Reference Include="System.Core" />
57+
<Reference Include="System.Xml.Linq" />
58+
<Reference Include="System.Data.DataSetExtensions" />
59+
<Reference Include="Microsoft.CSharp" />
60+
<Reference Include="System.Data" />
61+
<Reference Include="System.Xml" />
62+
</ItemGroup>
63+
<ItemGroup>
64+
<Compile Include="..\restsharp\authenticators\HttpBasicAuthenticator.cs">
65+
<Link>Authenticators\HttpBasicAuthenticator.cs</Link>
66+
</Compile>
67+
<Compile Include="..\restsharp\authenticators\IAuthenticator.cs">
68+
<Link>Authenticators\IAuthenticator.cs</Link>
69+
</Compile>
70+
<Compile Include="..\restsharp\authenticators\NtlmAuthenticator.cs">
71+
<Link>Authenticators\NtlmAuthenticator.cs</Link>
72+
</Compile>
73+
<Compile Include="..\RestSharp\Authenticators\OAuth1Authenticator.cs">
74+
<Link>Authenticators\OAuth1Authenticator.cs</Link>
75+
</Compile>
76+
<Compile Include="..\restsharp\authenticators\OAuth2Authenticator.cs">
77+
<Link>Authenticators\OAuth2Authenticator.cs</Link>
78+
</Compile>
79+
<Compile Include="..\restsharp\authenticators\oauth\extensions\CollectionExtensions.cs">
80+
<Link>Authenticators\OAuth\Extensions\CollectionExtensions.cs</Link>
81+
</Compile>
82+
<Compile Include="..\restsharp\authenticators\oauth\extensions\OAuthExtensions.cs">
83+
<Link>Authenticators\OAuth\Extensions\OAuthExtensions.cs</Link>
84+
</Compile>
85+
<Compile Include="..\restsharp\authenticators\oauth\extensions\StringExtensions.cs">
86+
<Link>Authenticators\OAuth\Extensions\StringExtensions.cs</Link>
87+
</Compile>
88+
<Compile Include="..\restsharp\authenticators\oauth\extensions\TimeExtensions.cs">
89+
<Link>Authenticators\OAuth\Extensions\TimeExtensions.cs</Link>
90+
</Compile>
91+
<Compile Include="..\restsharp\authenticators\oauth\HttpPostParameter.cs">
92+
<Link>Authenticators\OAuth\HttpPostParameter.cs</Link>
93+
</Compile>
94+
<Compile Include="..\restsharp\authenticators\oauth\HttpPostParameterType.cs">
95+
<Link>Authenticators\OAuth\HttpPostParameterType.cs</Link>
96+
</Compile>
97+
<Compile Include="..\restsharp\authenticators\oauth\OAuthParameterHandling.cs">
98+
<Link>Authenticators\OAuth\OAuthParameterHandling.cs</Link>
99+
</Compile>
100+
<Compile Include="..\restsharp\authenticators\oauth\OAuthSignatureMethod.cs">
101+
<Link>Authenticators\OAuth\OAuthSignatureMethod.cs</Link>
102+
</Compile>
103+
<Compile Include="..\restsharp\authenticators\oauth\OAuthSignatureTreatment.cs">
104+
<Link>Authenticators\OAuth\OAuthSignatureTreatment.cs</Link>
105+
</Compile>
106+
<Compile Include="..\restsharp\authenticators\oauth\OAuthTools.cs">
107+
<Link>Authenticators\OAuth\OAuthTools.cs</Link>
108+
</Compile>
109+
<Compile Include="..\restsharp\authenticators\oauth\OAuthType.cs">
110+
<Link>Authenticators\OAuth\OAuthType.cs</Link>
111+
</Compile>
112+
<Compile Include="..\restsharp\authenticators\oauth\OAuthWebQueryInfo.cs">
113+
<Link>Authenticators\OAuth\OAuthWebQueryInfo.cs</Link>
114+
</Compile>
115+
<Compile Include="..\restsharp\authenticators\oauth\OAuthWorkflow.cs">
116+
<Link>Authenticators\OAuth\OAuthWorkflow.cs</Link>
117+
</Compile>
118+
<Compile Include="..\restsharp\authenticators\oauth\WebPair.cs">
119+
<Link>Authenticators\OAuth\WebPair.cs</Link>
120+
</Compile>
121+
<Compile Include="..\restsharp\authenticators\oauth\WebPairCollection.cs">
122+
<Link>Authenticators\OAuth\WebPairCollection.cs</Link>
123+
</Compile>
124+
<Compile Include="..\restsharp\authenticators\oauth\WebParameter.cs">
125+
<Link>Authenticators\OAuth\WebParameter.cs</Link>
126+
</Compile>
127+
<Compile Include="..\restsharp\authenticators\oauth\WebParameterCollection.cs">
128+
<Link>Authenticators\OAuth\WebParameterCollection.cs</Link>
129+
</Compile>
130+
<Compile Include="..\restsharp\authenticators\SimpleAuthenticator.cs">
131+
<Link>Authenticators\SimpleAuthenticator.cs</Link>
132+
</Compile>
133+
<Compile Include="..\restsharp\deserializers\DeserializeAsAttribute.cs">
134+
<Link>Deserializers\DeserializeAsAttribute.cs</Link>
135+
</Compile>
136+
<Compile Include="..\restsharp\deserializers\DotNetXmlDeserializer.cs">
137+
<Link>Deserializers\DotNetXmlDeserializer.cs</Link>
138+
</Compile>
139+
<Compile Include="..\restsharp\deserializers\IDeserializer.cs">
140+
<Link>Deserializers\IDeserializer.cs</Link>
141+
</Compile>
142+
<Compile Include="..\restsharp\deserializers\JsonDeserializer.cs">
143+
<Link>Deserializers\JsonDeserializer.cs</Link>
144+
</Compile>
145+
<Compile Include="..\restsharp\deserializers\XmlAttributeDeserializer.cs">
146+
<Link>Deserializers\XmlAttributeDeserializer.cs</Link>
147+
</Compile>
148+
<Compile Include="..\restsharp\deserializers\XmlDeserializer.cs">
149+
<Link>Deserializers\XmlDeserializer.cs</Link>
150+
</Compile>
151+
<Compile Include="..\RestSharp\Enum.cs">
152+
<Link>Enum.cs</Link>
153+
</Compile>
154+
<Compile Include="..\restsharp\extensions\MiscExtensions.cs">
155+
<Link>Extensions\MiscExtensions.cs</Link>
156+
</Compile>
157+
<Compile Include="..\RestSharp\Extensions\MonoHttp\Helpers.cs">
158+
<Link>Extensions\MonoHttp\Helpers.cs</Link>
159+
</Compile>
160+
<Compile Include="..\RestSharp\Extensions\MonoHttp\HtmlEncoder.cs">
161+
<Link>Extensions\MonoHttp\HtmlEncoder.cs</Link>
162+
</Compile>
163+
<Compile Include="..\RestSharp\Extensions\MonoHttp\HttpUtility.cs">
164+
<Link>Extensions\MonoHttp\HttpUtility.cs</Link>
165+
</Compile>
166+
<Compile Include="..\restsharp\extensions\ReflectionExtensions.cs">
167+
<Link>Extensions\ReflectionExtensions.cs</Link>
168+
</Compile>
169+
<Compile Include="..\restsharp\extensions\ResponseExtensions.cs">
170+
<Link>Extensions\ResponseExtensions.cs</Link>
171+
</Compile>
172+
<Compile Include="..\RestSharp\Extensions\ResponseStatusExtensions.cs">
173+
<Link>Extensions\ResponseStatusExtensions.cs</Link>
174+
</Compile>
175+
<Compile Include="..\restsharp\extensions\StringExtensions.cs">
176+
<Link>Extensions\StringExtensions.cs</Link>
177+
</Compile>
178+
<Compile Include="..\restsharp\extensions\XmlExtensions.cs">
179+
<Link>Extensions\XmlExtensions.cs</Link>
180+
</Compile>
181+
<Compile Include="..\RestSharp\FileParameter.cs">
182+
<Link>FileParameter.cs</Link>
183+
</Compile>
184+
<Compile Include="..\RestSharp\Http.Async.cs">
185+
<Link>Http.Async.cs</Link>
186+
</Compile>
187+
<Compile Include="..\RestSharp\Http.cs">
188+
<Link>Http.cs</Link>
189+
</Compile>
190+
<Compile Include="..\RestSharp\Http.Sync.cs">
191+
<Link>Http.Sync.cs</Link>
192+
</Compile>
193+
<Compile Include="..\RestSharp\HttpCookie.cs">
194+
<Link>HttpCookie.cs</Link>
195+
</Compile>
196+
<Compile Include="..\RestSharp\HttpFile.cs">
197+
<Link>HttpFile.cs</Link>
198+
</Compile>
199+
<Compile Include="..\RestSharp\HttpHeader.cs">
200+
<Link>HttpHeader.cs</Link>
201+
</Compile>
202+
<Compile Include="..\RestSharp\HttpParameter.cs">
203+
<Link>HttpParameter.cs</Link>
204+
</Compile>
205+
<Compile Include="..\RestSharp\HttpResponse.cs">
206+
<Link>HttpResponse.cs</Link>
207+
</Compile>
208+
<Compile Include="..\RestSharp\IHttp.cs">
209+
<Link>IHttp.cs</Link>
210+
</Compile>
211+
<Compile Include="..\RestSharp\IHttpFactory.cs">
212+
<Link>IHttpFactory.cs</Link>
213+
</Compile>
214+
<Compile Include="..\RestSharp\IHttpResponse.cs">
215+
<Link>IHttpResponse.cs</Link>
216+
</Compile>
217+
<Compile Include="..\RestSharp\IRestClient.cs">
218+
<Link>IRestClient.cs</Link>
219+
</Compile>
220+
<Compile Include="..\RestSharp\IRestRequest.cs">
221+
<Link>IRestRequest.cs</Link>
222+
</Compile>
223+
<Compile Include="..\RestSharp\IRestResponse.cs">
224+
<Link>IRestResponse.cs</Link>
225+
</Compile>
226+
<Compile Include="..\RestSharp\Parameter.cs">
227+
<Link>Parameter.cs</Link>
228+
</Compile>
229+
<Compile Include="..\RestSharp\RestClient.Async.cs">
230+
<Link>RestClient.Async.cs</Link>
231+
</Compile>
232+
<Compile Include="..\RestSharp\RestClient.cs">
233+
<Link>RestClient.cs</Link>
234+
</Compile>
235+
<Compile Include="..\RestSharp\RestClient.Sync.cs">
236+
<Link>RestClient.Sync.cs</Link>
237+
</Compile>
238+
<Compile Include="..\RestSharp\RestClientExtensions.cs">
239+
<Link>RestClientExtensions.cs</Link>
240+
</Compile>
241+
<Compile Include="..\RestSharp\RestRequest.cs">
242+
<Link>RestRequest.cs</Link>
243+
</Compile>
244+
<Compile Include="..\RestSharp\RestRequestAsyncHandle.cs">
245+
<Link>RestRequestAsyncHandle.cs</Link>
246+
</Compile>
247+
<Compile Include="..\RestSharp\RestResponse.cs">
248+
<Link>RestResponse.cs</Link>
249+
</Compile>
250+
<Compile Include="..\RestSharp\RestResponseCookie.cs">
251+
<Link>RestResponseCookie.cs</Link>
252+
</Compile>
253+
<Compile Include="..\restsharp\serializers\DotNetXmlSerializer.cs">
254+
<Link>Serializers\DotNetXmlSerializer.cs</Link>
255+
</Compile>
256+
<Compile Include="..\restsharp\serializers\ISerializer.cs">
257+
<Link>Serializers\ISerializer.cs</Link>
258+
</Compile>
259+
<Compile Include="..\restsharp\serializers\JsonSerializer.cs">
260+
<Link>Serializers\JsonSerializer.cs</Link>
261+
</Compile>
262+
<Compile Include="..\restsharp\serializers\SerializeAsAttribute.cs">
263+
<Link>Serializers\SerializeAsAttribute.cs</Link>
264+
</Compile>
265+
<Compile Include="..\restsharp\serializers\XmlSerializer.cs">
266+
<Link>Serializers\XmlSerializer.cs</Link>
267+
</Compile>
268+
<Compile Include="..\RestSharp\SharedAssemblyInfo.cs">
269+
<Link>SharedAssemblyInfo.cs</Link>
270+
</Compile>
271+
<Compile Include="..\restsharp\validation\Require.cs">
272+
<Link>Validation\Require.cs</Link>
273+
</Compile>
274+
<Compile Include="..\restsharp\SimpleJson.cs">
275+
<Link>SimpleJson.cs</Link>
276+
</Compile>
277+
<Compile Include="..\restsharp\validation\Validate.cs">
278+
<Link>Validation\Validate.cs</Link>
279+
</Compile>
280+
<Compile Include="Extensions\RestClientExtensions.cs" />
281+
<Compile Include="Properties\AssemblyInfo.cs" />
282+
</ItemGroup>
283+
<ItemGroup>
284+
<None Include="..\RestSharp.snk">
285+
<Link>RestSharp.snk</Link>
286+
</None>
287+
<None Include="packages.config" />
288+
</ItemGroup>
289+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
290+
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
291+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
292+
Other similar extension points exist, see Microsoft.Common.targets.
293+
<Target Name="BeforeBuild">
294+
</Target>
295+
<Target Name="AfterBuild">
296+
</Target>
297+
-->
298+
</Project>

0 commit comments

Comments
 (0)