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

Commit e7535a3

Browse files
committed
Update PCL Platform names
1 parent b1c2473 commit e7535a3

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/ServiceStack.Text/PclExport.NetCore.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
namespace ServiceStack
88
{
9-
public class NetCorePclExport : NetStandardPclExport
9+
public class Net6PclExport : NetStandardPclExport
1010
{
11-
public NetCorePclExport()
11+
public Net6PclExport()
1212
{
13-
this.PlatformName = Platforms.NetCore;
13+
this.PlatformName = Platforms.Net6;
1414
ReflectionOptimizer.Instance = EmitReflectionOptimizer.Provider;
1515
}
1616

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323

2424
namespace ServiceStack
2525
{
26-
public class Net45PclExport : PclExport
26+
public class NetFxPclExport : PclExport
2727
{
28-
public static Net45PclExport Provider = new Net45PclExport();
28+
public static NetFxPclExport Provider = new NetFxPclExport();
2929

30-
public Net45PclExport()
30+
public NetFxPclExport()
3131
{
3232
this.DirSep = Path.DirectorySeparatorChar;
3333
this.AltDirSep = Path.DirectorySeparatorChar == '/' ? '\\' : '/';
@@ -37,7 +37,7 @@ public Net45PclExport()
3737
this.InvariantComparer = StringComparer.InvariantCulture;
3838
this.InvariantComparerIgnoreCase = StringComparer.InvariantCultureIgnoreCase;
3939

40-
this.PlatformName = Platforms.Net45;
40+
this.PlatformName = Platforms.NetFX;
4141
ReflectionOptimizer.Instance = EmitReflectionOptimizer.Provider;
4242
}
4343

src/ServiceStack.Text/PclExport.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ public abstract class PclExport
2121
{
2222
public static class Platforms
2323
{
24-
public const string NetStandard = "NETStandard";
25-
public const string NetCore = "NetCore";
26-
public const string Net45 = "Net45";
24+
public const string NetStandard = "NETStd";
25+
public const string Net6 = "NET6";
26+
public const string NetFX = "NETFX";
2727
}
2828

2929
public static PclExport Instance =
3030
#if NETFX
31-
new Net45PclExport()
31+
new NetFxPclExport()
3232
#elif NETSTANDARD2_0
3333
new NetStandardPclExport()
3434
#elif NETCORE || NET6_0_OR_GREATER
35-
new NetCorePclExport()
35+
new Net6PclExport()
3636
#endif
3737
;
3838

0 commit comments

Comments
 (0)