Skip to content

Commit 891e61c

Browse files
committed
Merge pull request restsharp#733 from restsharp/work_in_progress
new nuget targets and other cleanup
2 parents 1723cd3 + a1c854b commit 891e61c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1955
-1394
lines changed

.nuget/RestSharp.Build.dll

-512 Bytes
Binary file not shown.

.nuget/Signed/RestSharp.Build.dll

0 Bytes
Binary file not shown.

README.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
### Features
77

8-
* Supports .NET 3.5+, Silverlight 4, Windows Phone 8, Mono, MonoTouch, Mono for Android
8+
* Supports .NET 3.5+, Silverlight 5, Windows Phone 8, Mono, MonoTouch, Mono for Android
99
* Easy installation using [NuGet](http://nuget.org/packages/RestSharp) for most .NET flavors
1010
* Supports strong naming using [NuGet](http://nuget.org/packages/RestSharpSigned) for most .NET flavors
1111
* Automatic XML and JSON deserialization

RestSharp.2015.sln

-277
This file was deleted.

RestSharp.All.sln

-451
This file was deleted.

RestSharp.Android/RestSharp.Android.csproj

+7-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
88
<OutputType>Library</OutputType>
99
<RootNamespace>RestSharp</RootNamespace>
10-
<AssemblyName>RestSharp.Android</AssemblyName>
10+
<AssemblyName>RestSharp</AssemblyName>
1111
<FileAlignment>512</FileAlignment>
1212
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
13-
<TargetFrameworkVersion>v2.3</TargetFrameworkVersion>
13+
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
14+
<AndroidUseLatestPlatformSdk>True</AndroidUseLatestPlatformSdk>
1415
</PropertyGroup>
1516
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1617
<DebugSymbols>true</DebugSymbols>
@@ -21,6 +22,8 @@
2122
<ErrorReport>prompt</ErrorReport>
2223
<WarningLevel>4</WarningLevel>
2324
<AndroidLinkMode>None</AndroidLinkMode>
25+
<DocumentationFile>bin\Debug\RestSharp.xml</DocumentationFile>
26+
<NoWarn>1591,1658,1584,1572,1574</NoWarn>
2427
</PropertyGroup>
2528
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2629
<DebugType>pdbonly</DebugType>
@@ -30,6 +33,8 @@
3033
<ErrorReport>prompt</ErrorReport>
3134
<WarningLevel>4</WarningLevel>
3235
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
36+
<DocumentationFile>bin\Release\RestSharp.xml</DocumentationFile>
37+
<NoWarn>1591,1658,1584,1572,1574</NoWarn>
3338
</PropertyGroup>
3439
<ItemGroup>
3540
<Reference Include="mscorlib" />

RestSharp.Build/NuSpecUpdateTask.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,11 @@ private void GenerateComputedSpecFile()
6464
ReplaceToken(metaNode, "owners", this.Authors);
6565
ReplaceToken(metaNode, "description", this.Description);
6666
ReplaceToken(metaNode, "version", this.Version);
67-
67+
#if SIGNED
68+
doc.Save(this.SpecFile.Replace(".nuspec", "-signed-computed.nuspec"));
69+
#else
6870
doc.Save(this.SpecFile.Replace(".nuspec", "-computed.nuspec"));
71+
#endif
6972
}
7073

7174
private static void ReplaceToken(XContainer metaNode, XName name, string value)

RestSharp.Build/RestSharp.Build.Signed.csproj

+2-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@
6363
</ItemGroup>
6464
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
6565
<PropertyGroup>
66-
<PostBuildEvent>copy /Y $(TargetPath) $(SolutionDir).nuget\Signed\$(TargetFileName)</PostBuildEvent>
66+
<PostBuildEvent>
67+
</PostBuildEvent>
6768
</PropertyGroup>
6869
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
6970
Other similar extension points exist, see Microsoft.Common.targets.

RestSharp.Build/RestSharp.Build.csproj

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
</ItemGroup>
5151
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
5252
<PropertyGroup>
53-
<PostBuildEvent>copy /Y "$(TargetPath)" "$(SolutionDir).nuget\$(TargetFileName)"</PostBuildEvent>
53+
<PostBuildEvent>
54+
</PostBuildEvent>
5455
</PropertyGroup>
5556
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
5657
Other similar extension points exist, see Microsoft.Common.targets.

RestSharp.IntegrationTests/AsyncTests.cs

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
using System;
1+
using NUnit.Framework;
2+
using RestSharp.IntegrationTests.Helpers;
3+
using System;
24
using System.Linq;
35
using System.Net;
46
using System.Threading;
57
using System.Threading.Tasks;
6-
using NUnit.Framework;
7-
using RestSharp.IntegrationTests.Helpers;
88

99
namespace RestSharp.IntegrationTests
1010
{
@@ -136,6 +136,7 @@ public void Can_Perform_GetTaskAsync_With_Response_Type()
136136
}
137137
}
138138

139+
#if !APPVEYOR
139140
[Test]
140141
public void Can_Cancel_GET_TaskAsync()
141142
{
@@ -154,6 +155,7 @@ public void Can_Cancel_GET_TaskAsync()
154155
Assert.True(task.IsCanceled);
155156
}
156157
}
158+
#endif
157159

158160
[Test]
159161
public void Can_Cancel_GET_TaskAsync_With_Response_Type()

RestSharp.IntegrationTests/RestSharp.IntegrationTests.Signed.csproj

+3
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@
102102
<Name>RestSharp.Net4.Signed</Name>
103103
</ProjectReference>
104104
</ItemGroup>
105+
<ItemGroup>
106+
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
107+
</ItemGroup>
105108
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
106109
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
107110
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

RestSharp.IntegrationTests/RestSharp.IntegrationTests.csproj

+5-11
Original file line numberDiff line numberDiff line change
@@ -43,24 +43,15 @@
4343
<NoWarn>
4444
</NoWarn>
4545
</PropertyGroup>
46-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'DebugAppveyor|AnyCPU'">
46+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug.Appveyor|AnyCPU'">
4747
<DebugSymbols>true</DebugSymbols>
48-
<OutputPath>bin\DebugAppveyor\</OutputPath>
48+
<OutputPath>bin\Debug.Appveyor\</OutputPath>
4949
<DefineConstants>TRACE;DEBUG;FRAMEWORK, NET4, APPVEYOR</DefineConstants>
5050
<DebugType>full</DebugType>
5151
<PlatformTarget>AnyCPU</PlatformTarget>
5252
<ErrorReport>prompt</ErrorReport>
5353
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
5454
</PropertyGroup>
55-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'ReleaseAppveyor|AnyCPU'">
56-
<OutputPath>bin\ReleaseAppveyor\</OutputPath>
57-
<DefineConstants>TRACE</DefineConstants>
58-
<Optimize>true</Optimize>
59-
<DebugType>pdbonly</DebugType>
60-
<PlatformTarget>AnyCPU</PlatformTarget>
61-
<ErrorReport>prompt</ErrorReport>
62-
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
63-
</PropertyGroup>
6455
<ItemGroup>
6556
<Reference Include="nunit.framework, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
6657
<HintPath>..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
@@ -111,6 +102,9 @@
111102
<Name>RestSharp.Net4</Name>
112103
</ProjectReference>
113104
</ItemGroup>
105+
<ItemGroup>
106+
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
107+
</ItemGroup>
114108
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
115109
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
116110
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

RestSharp.Mono.sln

-52
This file was deleted.

RestSharp.MonoTouch/RestSharp.MonoTouch.csproj

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<RootNamespace>RestSharp</RootNamespace>
1010
<MtouchSdkVersion>3.2</MtouchSdkVersion>
1111
<MtouchMinimumOS>3.0</MtouchMinimumOS>
12-
<AssemblyName>RestSharp.MonoTouch</AssemblyName>
12+
<AssemblyName>RestSharp</AssemblyName>
1313
</PropertyGroup>
1414
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1515
<DebugSymbols>true</DebugSymbols>
@@ -23,6 +23,8 @@
2323
<ConsolePause>false</ConsolePause>
2424
<MtouchArch>ARMv6</MtouchArch>
2525
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
26+
<DocumentationFile>bin\Debug\RestSharp.xml</DocumentationFile>
27+
<NoWarn>1591,1658,1584,1572,1574</NoWarn>
2628
</PropertyGroup>
2729
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2830
<DebugType>none</DebugType>
@@ -34,6 +36,8 @@
3436
<DefineConstants>MONOTOUCH;FRAMEWORK</DefineConstants>
3537
<MtouchArch>ARMv6</MtouchArch>
3638
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
39+
<DocumentationFile>bin\Release\RestSharp.xml</DocumentationFile>
40+
<NoWarn>1591,1658,1584,1572,1574</NoWarn>
3741
</PropertyGroup>
3842
<ItemGroup>
3943
<Reference Include="System" />
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

0 commit comments

Comments
 (0)