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

Commit 1a245bf

Browse files
committed
Merge branch 'master' of github.com:ServiceStack/ServiceStack.Text
2 parents 864ee2b + 98c4821 commit 1a245bf

File tree

11 files changed

+39
-7
lines changed

11 files changed

+39
-7
lines changed

build/build-core.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ echo replace Env
2727
sed -i "s/ServiceStackVersion = [[:digit:]]\+.[[:digit:]]\+m/ServiceStackVersion = ${EnvVersion}m/g" ./src/ServiceStack.Text/Env.cs
2828

2929
echo replace project.json
30-
sed -i "s/\"version\": \"[^\"]\+\"/\"version\": \"${Version}\"/g" ./src/ServiceStack.Text.NetCore/ServiceStack.Text/project.json
30+
sed -i "s/\"version\": \"[^\"]\+\"/\"version\": \"${Version}\"/g" ./src/ServiceStack.Text/project.json
3131

3232
echo replace package
3333
sed -i "s/<version>[^<]\+/<version>${PackageVersion}/g" ./NuGet.Core/ServiceStack.Text.Core/servicestack.text.core.nuspec

src/ServiceStack.Text/project.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@
6666
]
6767
},
6868
"frameworkAssemblies": {
69-
"System.Runtime.Serialization.Primitives": "4.1.1-*",
70-
"System.Runtime.Serialization.Xml": "4.1.1",
71-
"System.Net.Requests": "4.0.11",
72-
"System.Dynamic.Runtime": "4.0.11",
73-
"Microsoft.CSharp": "4.0.1-*"
69+
"System.Runtime.Serialization.Primitives": "4.0.0",
70+
"System.Runtime.Serialization.Xml": "4.0.0",
71+
"System.Net.Requests": "4.0.0",
72+
"System.Dynamic.Runtime": "4.0.0",
73+
"Microsoft.CSharp": "4.0.0"
7474
}
7575
}
7676
},

tests/ServiceStack.Text.Tests/DynamicModels/DataModel/CustomCollection.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
namespace ServiceStack.Text.Tests.DynamicModels.DataModel
66
{
7+
#if !NETCORE
78
[Serializable]
9+
#endif
810
public class CustomCollection : Collection<CustomCollectionItem>
911
{
1012
public int FindItemIndex(string name)

tests/ServiceStack.Text.Tests/DynamicModels/DataModel/CustomCollectionItem.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
namespace ServiceStack.Text.Tests.DynamicModels.DataModel
77
{
8+
#if !NETCORE
89
[Serializable]
10+
#endif
911
public class CustomCollectionItem
1012
{
1113
public CustomCollectionItem()

tests/ServiceStack.Text.Tests/DynamicModels/DataModel/DataContainer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
namespace ServiceStack.Text.Tests.DynamicModels.DataModel
55
{
6+
#if !NETCORE
67
[Serializable]
8+
#endif
79
public sealed class DataContainer : DataContainerBase
810
{
911
public IEnumerable<Type> TypeList { get; set; }

tests/ServiceStack.Text.Tests/DynamicModels/DataModel/DataContainerBase.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
namespace ServiceStack.Text.Tests.DynamicModels.DataModel
77
{
8+
#if !NETCORE
89
[Serializable]
10+
#endif
911
public abstract class DataContainerBase
1012
{
1113
public Guid Identifier { get; set; }

tests/ServiceStack.Text.Tests/DynamicModels/DataModel/ObjectGraph.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66

77
namespace ServiceStack.Text.Tests.DynamicModels.DataModel
88
{
9+
#if !NETCORE
910
[Serializable]
11+
#endif
1012
public class ObjectGraph
1113
#if !NETCORE
1214
: ISerializable

tests/ServiceStack.Text.Tests/JsonTests/PublicFieldTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
namespace ServiceStack.Text.Tests.JsonTests
55
{
6+
#if !NETCORE
67
[Serializable]
8+
#endif
79
public class TypeWithPublicFields
810
{
911
public readonly string Text;

tests/ServiceStack.Text.Tests/StructTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ namespace ServiceStack.Text.Tests
1212
[TestFixture]
1313
public class StructTests
1414
{
15+
#if !NETCORE
1516
[Serializable]
17+
#endif
1618
public class Foo
1719
{
1820
public string Name { get; set; }
@@ -24,7 +26,9 @@ public class Foo
2426

2527
public interface IText { }
2628

29+
#if !NETCORE
2730
[Serializable]
31+
#endif
2832
public struct Text
2933
{
3034
private readonly string _value;
@@ -209,7 +213,9 @@ public void Can_TreatValueAsRefType()
209213
JsConfig.Reset();
210214
}
211215

216+
#if !NETCORE
212217
[Serializable]
218+
#endif
213219
protected struct DangerousText1
214220
{
215221
public static object Parse(string text)
@@ -218,7 +224,9 @@ public static object Parse(string text)
218224
}
219225
}
220226

227+
#if !NETCORE
221228
[Serializable]
229+
#endif
222230
protected struct DangerousText2
223231
{
224232
public static int Parse(string text)

tests/ServiceStack.Text.Tests/Support/DdnDtos.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ public class UserPublicView
2424
public ArrayOfPost Posts { get; set; }
2525
}
2626

27+
#if !NETCORE
2728
[Serializable]
29+
#endif
2830
[DataContract(Namespace = "http://schemas.ddnglobal.com/types/")]
2931
public class UserPublicProfile
3032
{
@@ -156,7 +158,9 @@ public string AboutMe
156158
}
157159
}
158160

161+
#if !NETCORE
159162
[Serializable]
163+
#endif
160164
[CollectionDataContract(Namespace = "http://schemas.ddnglobal.com/types/", ItemName = "String")]
161165
public class ArrayOfString : List<string>
162166
{
@@ -169,7 +173,9 @@ public ArrayOfString(IEnumerable<string> collection) : base(collection) { }
169173
//public ArrayOfString(params string[] ids) : base(ids) { }
170174
}
171175

176+
#if !NETCORE
172177
[Serializable]
178+
#endif
173179
[DataContract(Namespace = "http://schemas.ddnglobal.com/types/")]
174180
public class UserSearchResult
175181
: IHasId<Guid>
@@ -214,7 +220,9 @@ public class UserSearchResult
214220
public DateTime ActivationDate { get; set; }
215221
}
216222

223+
#if !NETCORE
217224
[Serializable]
225+
#endif
218226
[CollectionDataContract(Namespace = "http://schemas.ddnglobal.com/types/", ItemName = "Post")]
219227
public class ArrayOfPost : List<Post>
220228
{
@@ -224,7 +232,9 @@ public ArrayOfPost(IEnumerable<Post> collection) : base(collection) { }
224232
public static ArrayOfPost New(params Post[] ids) { return new ArrayOfPost(ids); }
225233
}
226234

235+
#if !NETCORE
227236
[Serializable]
237+
#endif
228238
[DataContract(Namespace = "http://schemas.ddnglobal.com/types/")]
229239
public class Post
230240
: IHasStringId
@@ -677,7 +687,9 @@ public string LinkUrl
677687
}
678688

679689
[DataContract(Namespace = "http://schemas.ddnglobal.com/types/")]
690+
#if !NETCORE
680691
[Serializable]
692+
#endif
681693
public class ImageAsset
682694
{
683695
[DataMember(EmitDefaultValue = false)]

0 commit comments

Comments
 (0)