Skip to content

Commit c39e7a2

Browse files
Upgrade log4net 3.3.1 (#1280)
* chore: upgrade log4net to 3.3.1 Bump the three csproj references that ship log4net (GxClasses for .NET Framework, GxClasses for .NET Core, and GxPdfReportsCS.Itext4) from 3.3.0 to 3.3.1 to pick up the latest stable release. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore: bump hard-coded log4net assembly redirect to 3.3.1.0 gxconfig.cs has two AssemblyResolve helpers (one for NETCORE, one for .NET Framework) that pin log4net to a specific Version. They were both still pointing at 3.3.0.0, so the runtime would have tried to redirect references to the older assembly even after the package upgrade. Update both branches to 3.3.1.0 to match the package version bumped in the previous commit. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent bb1a5c6 commit c39e7a2

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

dotnet/src/dotnetcore/GxClasses/GxClasses.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
</ItemGroup>
134134
<ItemGroup>
135135
<PackageReference Include="Experimental.System.Messaging.Signed" Version="1.0.0" />
136-
<PackageReference Include="log4net" Version="3.3.0" />
136+
<PackageReference Include="log4net" Version="3.3.1" />
137137
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.1.6" />
138138
<PackageReference Include="Microsoft.Data.Sqlite" Version="3.0.0" PrivateAssets="All" />
139139
<PackageReference Include="Microsoft.DotNet.Analyzers.Compatibility" Version="0.2.12-alpha">

dotnet/src/dotnetcore/GxPdfReportsCS.Itext4/GxPdfReportsCS.Itext4.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</ItemGroup>
1616

1717
<ItemGroup>
18-
<PackageReference Include="log4net" Version="3.3.0" />
18+
<PackageReference Include="log4net" Version="3.3.1" />
1919
<PackageReference Include="Microsoft.DotNet.Analyzers.Compatibility" Version="0.2.12-alpha">
2020
<PrivateAssets>all</PrivateAssets>
2121
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

dotnet/src/dotnetframework/GxClasses/Core/gxconfig.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ private static string NormalizeLanguageName(string langCode)
457457
#if NETCORE
458458
public static IConfiguration ConfigRoot { get ; set; }
459459
const string Log4NetShortName = "log4net";
460-
static Version Log4NetVersion = new Version(3, 3, 0, 0);
460+
static Version Log4NetVersion = new Version(3, 3, 1, 0);
461461

462462
const string ConfigurationManagerBak = "System.Configuration.ConfigurationManager, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51";
463463
const string ConfigurationManagerFileName = "System.Configuration.ConfigurationManager.dll";
@@ -504,7 +504,7 @@ private static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEven
504504
#else
505505
static Dictionary<string, Version> AssemblyRedirect = new Dictionary<string, Version>
506506
{
507-
{"log4net", new Version(3, 3, 0, 0) },
507+
{"log4net", new Version(3, 3, 1, 0) },
508508
{ "System.Threading.Tasks.Extensions", new Version(4, 2, 0, 1) },
509509
{ "System.Runtime.CompilerServices.Unsafe", new Version(4, 0, 4, 1) },
510510
{ "System.Buffers", new Version(4, 0, 5, 0)},

dotnet/src/dotnetframework/GxClasses/GxClasses.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<PackageReference Include="Microsoft.Win32.Registry" Version="4.3.0" />
2121
<PackageReference Include="Nustache" Version="1.16.0.10" />
2222
<PackageReference Include="SecurityCodeScan" PrivateAssets="all" Version="3.3.0" />
23-
<PackageReference Include="log4net" Version="3.3.0" />
23+
<PackageReference Include="log4net" Version="3.3.1" />
2424
<PackageReference Include="System.Net.Http" Version="4.3.4" />
2525
<PackageReference Include="System.Net.Http.WinHttpHandler" Version="5.0.0" />
2626
<PackageReference Include="System.Text.Json" Version="8.0.5" />

0 commit comments

Comments
 (0)