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

Commit a4f5791

Browse files
committed
Change #if NET45 to #if NETFX
1 parent 237a371 commit a4f5791

File tree

8 files changed

+10
-18
lines changed

8 files changed

+10
-18
lines changed

src/Directory.Build.props

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,16 @@
2525
</PropertyGroup>
2626

2727
<PropertyGroup Condition=" '$(TargetFramework)' == 'net472' ">
28-
<DefineConstants>$(DefineConstants);NETFX;NET45</DefineConstants>
28+
<DefineConstants>$(DefineConstants);NETFX;NET45;NET472</DefineConstants>
2929
<SignAssembly>True</SignAssembly>
3030
<DelaySign>False</DelaySign>
3131
<AssemblyOriginatorKeyFile>../servicestack.snk</AssemblyOriginatorKeyFile>
3232
</PropertyGroup>
3333

34-
<PropertyGroup Condition=" '$(TargetFramework)' == 'net472' ">
35-
<DefineConstants>$(DefineConstants);NETFX;NET472</DefineConstants>
36-
</PropertyGroup>
37-
3834
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
3935
<DefineConstants>$(DefineConstants);NETSTANDARD;NETSTANDARD2_0</DefineConstants>
4036
</PropertyGroup>
4137

42-
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.1' ">
43-
<DefineConstants>$(DefineConstants);NETSTANDARD;NETSTANDARD2_1</DefineConstants>
44-
</PropertyGroup>
45-
4638
<PropertyGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
4739
<DefineConstants>$(DefineConstants);NET6_0;NET6_0_OR_GREATER</DefineConstants>
4840
</PropertyGroup>

src/ServiceStack.Text/LicenseUtils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ public static bool VerifySignedHash(byte[] DataToVerify, byte[] SignedData, Syst
666666

667667
public static LicenseKey VerifyLicenseKeyText(string licenseKeyText)
668668
{
669-
#if NET45 || NETCORE
669+
#if NETFX || NETCORE
670670
LicenseKey key;
671671
try
672672
{
@@ -686,7 +686,7 @@ public static LicenseKey VerifyLicenseKeyText(string licenseKeyText)
686686

687687
private static void FromXml(this System.Security.Cryptography.RSA rsa, string xml)
688688
{
689-
#if NET45
689+
#if NETFX
690690
rsa.FromXmlString(xml);
691691
#else
692692
//throws PlatformNotSupportedException

src/ServiceStack.Text/PclExport.Net45.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if NET45
1+
#if NETFX
22
using System;
33
using System.Collections;
44
using System.Collections.Concurrent;

src/ServiceStack.Text/PclExport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static class Platforms
2727
}
2828

2929
public static PclExport Instance
30-
#if NET45
30+
#if NETFX
3131
= new Net45PclExport()
3232
#elif NETSTANDARD2_0
3333
= new NetStandardPclExport()

src/ServiceStack.Text/ReflectionOptimizer.Emit.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if NET45 || (NETCORE && !NETSTANDARD2_0)
1+
#if NETFX || (NETCORE && !NETSTANDARD2_0)
22

33
using System;
44
using System.Linq;

src/ServiceStack.Text/ReflectionOptimizer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace ServiceStack.Text
88
public abstract class ReflectionOptimizer
99
{
1010
public static ReflectionOptimizer Instance =
11-
#if NET45 || (NETCORE && !NETSTANDARD2_0)
11+
#if NETFX || (NETCORE && !NETSTANDARD2_0)
1212
EmitReflectionOptimizer.Provider
1313
#else
1414
ExpressionReflectionOptimizer.Provider

tests/ServiceStack.Text.Benchmarks/MiniProfiler/FlowData.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if NET45
1+
#if NETFX
22
using System.Runtime.Remoting;
33
using System.Runtime.Remoting.Messaging;
44
#else
@@ -16,7 +16,7 @@ namespace StackExchange.Profiling.Internal
1616
/// <typeparam name="T">The type of data to store.</typeparam>
1717
public class FlowData<T>
1818
{
19-
#if NET45
19+
#if NETFX
2020
// Key specific to this type.
2121
#pragma warning disable RCS1158 // Avoid static members in generic types.
2222
private static readonly string _key = typeof(FlowData<T>).FullName;

tests/ServiceStack.Text.Tests/RuntimeSerializationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class MetaType : IMeta
4040

4141
public class RequestDto : IReturn<RequestDto> {}
4242

43-
#if NET45
43+
#if NETFX
4444
[Serializable]
4545
public class SerialiazableType { }
4646
#endif

0 commit comments

Comments
 (0)