Skip to content

Commit 5b576f8

Browse files
committed
Add support for ServiceStack.HttpClient.Core
1 parent e469257 commit 5b576f8

File tree

6 files changed

+139
-0
lines changed

6 files changed

+139
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
3+
<metadata>
4+
<id>ServiceStack.HttpClient.Core</id>
5+
<version>1.0.0</version>
6+
<title>ServiceStack.HttpClient.Core</title>
7+
<authors>Service Stack</authors>
8+
<owners>Service Stack</owners>
9+
<requireLicenseAcceptance>true</requireLicenseAcceptance>
10+
<licenseUrl>https://servicestack.net/terms</licenseUrl>
11+
<projectUrl>https://github.com/ServiceStack/ServiceStack</projectUrl>
12+
<iconUrl>https://servicestack.net/img/logo-32.png</iconUrl>
13+
<description>
14+
JSON ServiceClient implementation based on .NET's HttpClient
15+
</description>
16+
<summary>JSON ServiceClient implementation based on .NET's HttpClient</summary>
17+
<copyright>Copyright 2016 Service Stack</copyright>
18+
<language>en-US</language>
19+
<tags>ServiceStack Common Framework Clients ServiceClients JSON HttpClient Gateway</tags>
20+
<dependencies>
21+
<group targetFramework=".NETStandard1.1">
22+
<dependency id="System.Net.Requests" version="[4.0.11, )" />
23+
<dependency id="System.ServiceModel.Primitives" version="[4.1.0, )" />
24+
<dependency id="System.Xml.XmlSerializer" version="[4.0.11, )" />
25+
<dependency id="NETStandard.Library" version="[1.6.0, )" />
26+
<dependency id="ServiceStack.Interfaces.Core" version="[1.0.0, )" />
27+
<dependency id="ServiceStack.Text.Core" version="[1.0.0, )" />
28+
<dependency id="ServiceStack.Client.Core" version="[1.0.0, )" />
29+
</group>
30+
<group targetFramework=".NETStandard1.6">
31+
<dependency id="System.Net.Requests" version="[4.0.11, )" />
32+
<dependency id="System.ServiceModel.Primitives" version="[4.1.0, )" />
33+
<dependency id="System.Collections.Specialized" version="[4.0.1, )" />
34+
<dependency id="System.Xml.XmlSerializer" version="[4.0.11, )" />
35+
<dependency id="NETStandard.Library" version="[1.6.0, )" />
36+
<dependency id="ServiceStack.Interfaces.Core" version="[1.0.0, )" />
37+
<dependency id="ServiceStack.Text.Core" version="[1.0.0, )" />
38+
<dependency id="ServiceStack.Client.Core" version="[1.0.0, )" />
39+
</group>
40+
</dependencies>
41+
</metadata>
42+
<files>
43+
<file src="lib/**/*.*" target="lib" />
44+
<file src="../../src/ServiceStack.HttpClient/**/*.cs" target="src" />
45+
</files>
46+
</package>

build/build-core.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ sed -i "s/\"version\": \"[^\"]\+\"/\"version\": \"${Version}\"/g" ./src/ServiceS
2929
sed -i "s/\"version\": \"[^\"]\+\"/\"version\": \"${Version}\"/g" ./src/ServiceStack.Common/project.json
3030
sed -i "s/\"version\": \"[^\"]\+\"/\"version\": \"${Version}\"/g" ./src/ServiceStack/project.json
3131
sed -i "s/\"version\": \"[^\"]\+\"/\"version\": \"${Version}\"/g" ./src/ServiceStack.Kestrel/project.json
32+
sed -i "s/\"version\": \"[^\"]\+\"/\"version\": \"${Version}\"/g" ./src/ServiceStack.HttpClient/project.json
3233

3334
echo replace package
3435
find ./NuGet.Core -type f -name "*.nuspec" -exec sed -i "s/<version>[^<]\+/<version>${PackageVersion}/g" {} +
@@ -37,6 +38,7 @@ find ./NuGet.Core -type f -name "*.nuspec" -exec sed -i "s/\"ServiceStack.Interf
3738
find ./NuGet.Core -type f -name "*.nuspec" -exec sed -i "s/\"ServiceStack.Client.Core\" version=\"[^\"]\+\"/\"ServiceStack.Client.Core\" version=\"\[${PackageVersion}, \)\"/g" {} +
3839
find ./NuGet.Core -type f -name "*.nuspec" -exec sed -i "s/\"ServiceStack.Common.Core\" version=\"[^\"]\+\"/\"ServiceStack.Common.Core\" version=\"\[${PackageVersion}, \)\"/g" {} +
3940
find ./NuGet.Core -type f -name "*.nuspec" -exec sed -i "s/\"ServiceStack.Kestrel\" version=\"[^\"]\+\"/\"ServiceStack.Kestrel\" version=\"\[${PackageVersion}, \)\"/g" {} +
41+
find ./NuGet.Core -type f -name "*.nuspec" -exec sed -i "s/\"ServiceStack.HttpClient.Core\" version=\"[^\"]\+\"/\"ServiceStack.HttpClient.Core\" version=\"\[${PackageVersion}, \)\"/g" {} +
4042

4143
#restore packages
4244
#(cd ./src && dotnet restore)

src/ServiceStack.Core.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{312EC6C7
4747
EndProject
4848
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ServiceStack.Core.SelfHostTests", "..\tests\ServiceStack.Core.SelfHostTests\ServiceStack.Core.SelfHostTests.xproj", "{97002C10-48C4-4711-961B-F3E3D4FC3E4E}"
4949
EndProject
50+
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ServiceStack.HttpClient", "ServiceStack.HttpClient\ServiceStack.HttpClient.xproj", "{38723AC5-4D75-4D7F-BC7A-9D649485C60B}"
51+
EndProject
5052
Global
5153
GlobalSection(SolutionConfigurationPlatforms) = preSolution
5254
Debug|Any CPU = Debug|Any CPU
@@ -109,6 +111,10 @@ Global
109111
{97002C10-48C4-4711-961B-F3E3D4FC3E4E}.Debug|Any CPU.Build.0 = Debug|Any CPU
110112
{97002C10-48C4-4711-961B-F3E3D4FC3E4E}.Release|Any CPU.ActiveCfg = Release|Any CPU
111113
{97002C10-48C4-4711-961B-F3E3D4FC3E4E}.Release|Any CPU.Build.0 = Release|Any CPU
114+
{38723AC5-4D75-4D7F-BC7A-9D649485C60B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
115+
{38723AC5-4D75-4D7F-BC7A-9D649485C60B}.Debug|Any CPU.Build.0 = Debug|Any CPU
116+
{38723AC5-4D75-4D7F-BC7A-9D649485C60B}.Release|Any CPU.ActiveCfg = Release|Any CPU
117+
{38723AC5-4D75-4D7F-BC7A-9D649485C60B}.Release|Any CPU.Build.0 = Release|Any CPU
112118
EndGlobalSection
113119
GlobalSection(SolutionProperties) = preSolution
114120
HideSolutionNode = FALSE
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"frameworks": {
3+
"net45": {}
4+
},
5+
"runtimes": {
6+
"win": {}
7+
}
8+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="14.0.25420" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0.25420</VisualStudioVersion>
5+
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
6+
</PropertyGroup>
7+
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" />
8+
<PropertyGroup Label="Globals">
9+
<ProjectGuid>38723ac5-4d75-4d7f-bc7a-9d649485c60b</ProjectGuid>
10+
<RootNamespace>ServiceStack.HttpClient</RootNamespace>
11+
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath>
12+
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath>
13+
</PropertyGroup>
14+
15+
<PropertyGroup>
16+
<SchemaVersion>2.0</SchemaVersion>
17+
</PropertyGroup>
18+
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
19+
</Project>
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"configurations": {
3+
"Debug": {
4+
"buildOptions": {
5+
"define": [
6+
"DEBUG",
7+
"TRACE"
8+
]
9+
}
10+
},
11+
"Release": {
12+
"buildOptions": {
13+
"define": [
14+
"TRACE"
15+
],
16+
"optimize": true
17+
}
18+
}
19+
},
20+
"dependencies": {
21+
"NETStandard.Library": "1.6.0",
22+
"ServiceStack.Interfaces": "1.0.*",
23+
"ServiceStack.Text": "1.0.*",
24+
"ServiceStack.Client": "1.0.*"
25+
},
26+
"frameworks": {
27+
"netstandard1.1": {
28+
"dependencies": {
29+
"System.Net.Requests": "4.0.11",
30+
"System.ServiceModel.Primitives": "4.1.0",
31+
"System.Xml.XmlSerializer": "4.0.11"
32+
}
33+
},
34+
"netstandard1.6": {
35+
"dependencies": {
36+
"System.Net.Requests": "4.0.11",
37+
"System.Collections.Specialized": "4.0.1",
38+
"System.ServiceModel.Primitives": "4.1.0",
39+
"System.Xml.XmlSerializer": "4.0.11"
40+
}
41+
},
42+
".NETPortable,Version=v4.5,Profile=Profile7": {
43+
"buildOptions": {
44+
"define": [
45+
"PCL"
46+
]
47+
},
48+
"frameworkAssemblies": {
49+
"System.Runtime.Serialization.Primitives": "4.0.0.0",
50+
"System.Runtime.Serialization.Xml": "4.0.0.0",
51+
"System.Net.Requests": "4.0.0.0",
52+
"System.Dynamic.Runtime": "4.0.0.0",
53+
"Microsoft.CSharp": "4.0.0.0"
54+
}
55+
}
56+
},
57+
"version": "1.0.0"
58+
}

0 commit comments

Comments
 (0)