Skip to content

Commit 3fa6542

Browse files
authored
Merge pull request #66 from Flexberry/fix-client-profile
Fix net40 client profile
2 parents acda688 + 1acab70 commit 3fa6542

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

src/log4net/AssemblyInfo.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,17 @@
7373
[assembly: AssemblyInformationalVersionAttribute("2.0.9.0-.NET 4.0")]
7474
[assembly: AssemblyTitle("Apache log4net for .NET Framework 4.0")]
7575
#endif // Client Profile
76-
#elif (NET_2_0)
76+
#elif (NET_3_5)
7777
#if CLIENT_PROFILE
7878
[assembly: AssemblyInformationalVersionAttribute("2.0.9.0-.NET 3.5 CP")]
7979
[assembly: AssemblyTitle("Apache log4net for .NET Framework 3.5 Client Profile")]
8080
#else
81+
[assembly: AssemblyInformationalVersionAttribute("2.0.9.0-.NET 3.5")]
82+
[assembly: AssemblyTitle("Apache log4net for .NET Framework 3.5")]
83+
#endif // Client Profile
84+
#elif (NET_2_0)
8185
[assembly: AssemblyInformationalVersionAttribute("2.0.9.0-.NET 2.0")]
8286
[assembly: AssemblyTitle("Apache log4net for .NET Framework 2.0")]
83-
#endif // Client Profile
8487
#elif (NETCF_1_0)
8588
[assembly: AssemblyInformationalVersionAttribute("2.0.9.0-.NETCF 1.0")]
8689
[assembly: AssemblyTitle("Apache log4net for .NET Compact Framework 1.0")]

src/log4net/Core/LoggingEvent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ [Flags] public enum FixFlags
324324
[Serializable]
325325
#endif
326326
public class LoggingEvent
327-
#if !NETCF && NET_2_0
327+
#if !NETCF
328328
: ISerializable
329329
#endif
330330
{

src/log4net/Util/PropertiesDictionary.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ namespace log4net.Util
3535
/// </remarks>
3636
/// <author>Nicko Cadell</author>
3737
/// <author>Gert Driesen</author>
38-
#if NETCF || CLIENT_PROFILE
38+
#if NETCF
3939
public sealed class PropertiesDictionary : ReadOnlyPropertiesDictionary, IDictionary
4040
#else
41-
[Serializable] public sealed class PropertiesDictionary : ReadOnlyPropertiesDictionary, ISerializable, IDictionary
41+
[Serializable]
42+
public sealed class PropertiesDictionary : ReadOnlyPropertiesDictionary, ISerializable, IDictionary
4243
#endif
4344
{
4445
#region Public Instance Constructors
@@ -72,7 +73,7 @@ public PropertiesDictionary(ReadOnlyPropertiesDictionary propertiesDictionary) :
7273

7374
#region Private Instance Constructors
7475

75-
#if !(NETCF || CLIENT_PROFILE)
76+
#if !NETCF
7677
/// <summary>
7778
/// Initializes a new instance of the <see cref="PropertiesDictionary" /> class
7879
/// with serialized data.

src/log4net/log4net.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@
6969
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
7070
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
7171
<OutDir>..\..\build\$(Configuration)\net35-client</OutDir>
72-
<DefineConstants>$(DefineConstants);NET_2_0;CLIENT_PROFILE</DefineConstants>
72+
<DefineConstants>$(DefineConstants);NET_2_0;NET_3_5;CLIENT_PROFILE</DefineConstants>
7373
</PropertyGroup>
7474
<PropertyGroup Condition="'$(TargetFramework)'=='net40-client'">
7575
<TargetFrameworkIdentifier>.NETFramework</TargetFrameworkIdentifier>
76-
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
76+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
7777
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
7878
<OutDir>..\..\build\$(Configuration)\net40-client</OutDir>
79-
<DefineConstants>$(DefineConstants);NET_2_0;CLIENT_PROFILE</DefineConstants>
79+
<DefineConstants>$(DefineConstants);NET_2_0;NET_4_0;CLIENT_PROFILE</DefineConstants>
8080
</PropertyGroup>
8181
<PropertyGroup Condition="'$(TargetFramework)'=='netstandard1.3'">
8282
<DefineConstants>$(DefineConstants);NETSTANDARD;NETSTANDARD1_3</DefineConstants>

0 commit comments

Comments
 (0)