Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 5a3eb96

Browse files
committed
Extract PCL into separate csproj
1 parent 36bf1ee commit 5a3eb96

File tree

3 files changed

+77
-95
lines changed

3 files changed

+77
-95
lines changed

build/build.proj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@
8989
<MakeDir Directories="$(NuGetPackageDir)/ServiceStack.Text/lib/net45" Condition="!Exists('$(NuGetPackageDir)/ServiceStack.Text/lib/net45')" />
9090
<Copy SourceFiles="%(TextFiles.Identity)" DestinationFolder="$(NuGetPackageDir)/ServiceStack.Text/lib/net45" />
9191

92+
<!-- PCL -->
93+
<MSBuild Projects="$(BuildSolutionDir)/src/ServiceStack.Text/ServiceStack.Text.PCL.csproj"
94+
Targets="Build"
95+
Properties="Version=$(PackageVersion);Configuration=$(Configuration)" />
96+
9297
<MakeDir Directories="$(NuGetPackageDir)/ServiceStack.Text/lib/portable-net45+win8+monotouch+monoandroid+xamarin.ios10" Condition="!Exists('$(NuGetPackageDir)/ServiceStack.Text/lib/portable-net45+win8+monotouch+monoandroid+xamarin.ios10')" />
9398
<Copy SourceFiles="%(TextFilesPortable.Identity)" DestinationFolder="$(NuGetPackageDir)/ServiceStack.Text/lib/portable-net45+win8+monotouch+monoandroid+xamarin.ios10" />
9499

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFrameworks>portable45-net45+win8</TargetFrameworks>
5+
<AssemblyName>ServiceStack.Text</AssemblyName>
6+
<PackageId>ServiceStack.Text</PackageId>
7+
<NetStandardImplicitPackageVersion>1.6.0</NetStandardImplicitPackageVersion>
8+
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
9+
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
10+
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
11+
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
12+
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
13+
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
14+
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
15+
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
16+
</PropertyGroup>
17+
18+
<PropertyGroup Condition=" '$(Configuration)' != 'Debug' ">
19+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
20+
<Optimize>true</Optimize>
21+
</PropertyGroup>
22+
23+
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
24+
<DebugType>portable</DebugType>
25+
</PropertyGroup>
26+
27+
<ItemGroup>
28+
<PackageReference Include="MSBuild.Sdk.Extras" Version="1.0.1" PrivateAssets="all" />
29+
</ItemGroup>
30+
31+
<PropertyGroup Condition=" '$(TargetFramework)' == 'portable45-net45+win8' ">
32+
<DefineConstants>$(DefineConstants);PCL;PORTABLE7</DefineConstants>
33+
<TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier>
34+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
35+
<TargetFrameworkProfile>Profile7</TargetFrameworkProfile>
36+
<LanguageTargets>$(MSBuildProgramFiles32)\MSBuild\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets</LanguageTargets>
37+
</PropertyGroup>
38+
39+
<ItemGroup Condition=" '$(TargetFramework)' == 'portable45-net45+win8' ">
40+
<Reference Include="System" />
41+
<Reference Include="System.IO" />
42+
<Reference Include="System.IO.Compression" />
43+
<Reference Include="System.Core" />
44+
<Reference Include="System.Linq" />
45+
<Reference Include="System.Linq.Expressions" />
46+
<Reference Include="System.Net" />
47+
<Reference Include="System.Net.Requests" />
48+
<Reference Include="System.Net.Primitives" />
49+
<Reference Include="System.Globalization" />
50+
<Reference Include="System.Runtime" />
51+
<Reference Include="System.Runtime.Extensions" />
52+
<Reference Include="System.Runtime.Serialization" />
53+
<Reference Include="System.Runtime.Serialization.Primitives" />
54+
<Reference Include="System.Runtime.Serialization.Xml" />
55+
<Reference Include="System.Runtime.InteropServices" />
56+
<Reference Include="System.Reflection" />
57+
<Reference Include="System.Reflection.Extensions" />
58+
<Reference Include="System.Threading" />
59+
<Reference Include="System.Threading.Tasks" />
60+
<Reference Include="System.Collections" />
61+
<Reference Include="System.Collections.Concurrent" />
62+
<Reference Include="System.Text.Encoding" />
63+
<Reference Include="System.Text.RegularExpressions" />
64+
<Reference Include="System.Xml" />
65+
<Reference Include="System.Xml.ReaderWriter" />
66+
<Reference Include="System.Dynamic.Runtime" />
67+
<Reference Include="Microsoft.CSharp" />
68+
</ItemGroup>
69+
70+
<Import Project="$(MSBuildSDKExtrasTargets)" Condition="Exists('$(MSBuildSDKExtrasTargets)')" />
71+
</Project>
Lines changed: 1 addition & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net45;netstandard1.1;netstandard1.3;portable45-net45+win8</TargetFrameworks>
5-
<!--<TargetFrameworks>net45;netstandard1.1;netstandard1.3;portable45-net45+win8;sl5</TargetFrameworks>-->
4+
<TargetFrameworks>net45;netstandard1.1;netstandard1.3</TargetFrameworks>
65
<AssemblyName>ServiceStack.Text</AssemblyName>
76
<PackageId>ServiceStack.Text</PackageId>
87
<NetStandardImplicitPackageVersion>1.6.0</NetStandardImplicitPackageVersion>
@@ -25,10 +24,6 @@
2524
<DebugType>portable</DebugType>
2625
</PropertyGroup>
2726

28-
<ItemGroup>
29-
<PackageReference Include="MSBuild.Sdk.Extras" Version="1.0.1" PrivateAssets="all" />
30-
</ItemGroup>
31-
3227
<PropertyGroup Condition=" '$(TargetFramework)' == 'net45' ">
3328
<DefineConstants>$(DefineConstants);NET45</DefineConstants>
3429
</PropertyGroup>
@@ -79,93 +74,4 @@
7974
<PackageReference Include="System.Reflection.TypeExtensions" Version="4.1.0" />
8075
</ItemGroup>
8176

82-
<PropertyGroup Condition=" '$(TargetFramework)' == 'portable45-net45+win8' ">
83-
<DefineConstants>$(DefineConstants);PCL;PORTABLE7</DefineConstants>
84-
<TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier>
85-
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
86-
<TargetFrameworkProfile>Profile7</TargetFrameworkProfile>
87-
<LanguageTargets>$(MSBuildProgramFiles32)\MSBuild\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets</LanguageTargets>
88-
</PropertyGroup>
89-
90-
<ItemGroup Condition=" '$(TargetFramework)' == 'portable45-net45+win8' ">
91-
<Reference Include="System" />
92-
<Reference Include="System.IO" />
93-
<Reference Include="System.IO.Compression" />
94-
<Reference Include="System.Core" />
95-
<Reference Include="System.Linq" />
96-
<Reference Include="System.Linq.Expressions" />
97-
<Reference Include="System.Net" />
98-
<Reference Include="System.Net.Requests" />
99-
<Reference Include="System.Net.Primitives" />
100-
<Reference Include="System.Globalization" />
101-
<Reference Include="System.Runtime" />
102-
<Reference Include="System.Runtime.Extensions" />
103-
<Reference Include="System.Runtime.Serialization" />
104-
<Reference Include="System.Runtime.Serialization.Primitives" />
105-
<Reference Include="System.Runtime.Serialization.Xml" />
106-
<Reference Include="System.Runtime.InteropServices" />
107-
<Reference Include="System.Reflection" />
108-
<Reference Include="System.Reflection.Extensions" />
109-
<Reference Include="System.Threading" />
110-
<Reference Include="System.Threading.Tasks" />
111-
<Reference Include="System.Collections" />
112-
<Reference Include="System.Collections.Concurrent" />
113-
<Reference Include="System.Text.Encoding" />
114-
<Reference Include="System.Text.RegularExpressions" />
115-
<Reference Include="System.Xml" />
116-
<Reference Include="System.Xml.ReaderWriter" />
117-
<Reference Include="System.Dynamic.Runtime" />
118-
<Reference Include="Microsoft.CSharp" />
119-
</ItemGroup>
120-
121-
<!-- SL5 SDK https://www.microsoft.com/en-us/download/confirmation.aspx?id=28359 -->
122-
<PropertyGroup Condition=" '$(TargetFramework)' == 'sl5' ">
123-
<DefineConstants>$(DefineConstants);SL5;NO_DYNAMIC</DefineConstants>
124-
<TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
125-
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
126-
<!--<OutputPath>Release\bin\sl5</OutputPath>-->
127-
<TargetFrameworkDirectory>$(MSBuildProgramFiles32)\Reference Assemblies\Microsoft\Framework\Silverlight\v5.0\</TargetFrameworkDirectory>
128-
<TargetFrameworkSDKDirectory>$(MSBuildProgramFiles32)\Microsoft SDKs\Silverlight\v5.0\Libraries\Client\</TargetFrameworkSDKDirectory>
129-
<SilverlightRuntimeVersion>5.1.50905.0</SilverlightRuntimeVersion>
130-
</PropertyGroup>
131-
132-
<!--<PropertyGroup Condition=" '$(Configuration)' == 'Debug' and '$(TargetFramework)' == 'sl5' ">
133-
<OutputPath>Debug\bin\sl5</OutputPath>
134-
</PropertyGroup>-->
135-
136-
<ItemGroup Condition=" '$(TargetFramework)' == 'sl5' ">
137-
<Reference Include="System" />
138-
<Reference Include="System.IO" />
139-
<Reference Include="System.IO.Compression" />
140-
<Reference Include="System.Core" />
141-
<Reference Include="System.Linq" />
142-
<Reference Include="System.Linq.Expressions" />
143-
<Reference Include="System.Net" />
144-
<Reference Include="System.Net.Requests" />
145-
<Reference Include="System.Net.Primitives" />
146-
<Reference Include="System.Globalization" />
147-
<Reference Include="System.Runtime" />
148-
<Reference Include="System.Runtime.Extensions" />
149-
<Reference Include="System.Runtime.Serialization" />
150-
<Reference Include="System.Runtime.Serialization.Primitives" />
151-
<Reference Include="System.Runtime.Serialization.Xml" />
152-
<Reference Include="System.Runtime.InteropServices" />
153-
<Reference Include="System.Reflection" />
154-
<Reference Include="System.Reflection.Extensions" />
155-
<Reference Include="System.Threading" />
156-
<Reference Include="System.Threading.Tasks" />
157-
<Reference Include="System.Collections" />
158-
<Reference Include="System.Collections.Concurrent" />
159-
<Reference Include="System.Text.Encoding" />
160-
<Reference Include="System.Text.RegularExpressions" />
161-
<Reference Include="System.Xml" />
162-
<Reference Include="System.Xml.ReaderWriter" />
163-
<Reference Include="System.Dynamic.Runtime" />
164-
<Reference Include="Microsoft.CSharp" />
165-
<Reference Include="System.Dynamic" />
166-
<Reference Include="System.Windows" />
167-
</ItemGroup>
168-
169-
<Import Project="$(MSBuildSDKExtrasTargets)" Condition="Exists('$(MSBuildSDKExtrasTargets)')" />
170-
<!--<Import Project="$(MSBuildProgramFiles32)\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.Silverlight.CSharp.targets" />-->
17177
</Project>

0 commit comments

Comments
 (0)