From ceacf53000f863aa82df2f66a12734ed7c675313 Mon Sep 17 00:00:00 2001 From: claudiamurialdo <33756655+claudiamurialdo@users.noreply.github.com> Date: Fri, 8 May 2026 15:51:20 -0300 Subject: [PATCH 1/2] 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) --- dotnet/src/dotnetcore/GxClasses/GxClasses.csproj | 2 +- .../GxPdfReportsCS.Itext4/GxPdfReportsCS.Itext4.csproj | 2 +- dotnet/src/dotnetframework/GxClasses/GxClasses.csproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dotnet/src/dotnetcore/GxClasses/GxClasses.csproj b/dotnet/src/dotnetcore/GxClasses/GxClasses.csproj index 0f903cea3..d4574f909 100644 --- a/dotnet/src/dotnetcore/GxClasses/GxClasses.csproj +++ b/dotnet/src/dotnetcore/GxClasses/GxClasses.csproj @@ -133,7 +133,7 @@ - + diff --git a/dotnet/src/dotnetcore/GxPdfReportsCS.Itext4/GxPdfReportsCS.Itext4.csproj b/dotnet/src/dotnetcore/GxPdfReportsCS.Itext4/GxPdfReportsCS.Itext4.csproj index 4830fca02..9aef3580a 100644 --- a/dotnet/src/dotnetcore/GxPdfReportsCS.Itext4/GxPdfReportsCS.Itext4.csproj +++ b/dotnet/src/dotnetcore/GxPdfReportsCS.Itext4/GxPdfReportsCS.Itext4.csproj @@ -15,7 +15,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/dotnet/src/dotnetframework/GxClasses/GxClasses.csproj b/dotnet/src/dotnetframework/GxClasses/GxClasses.csproj index 903cec315..2d9712b21 100644 --- a/dotnet/src/dotnetframework/GxClasses/GxClasses.csproj +++ b/dotnet/src/dotnetframework/GxClasses/GxClasses.csproj @@ -20,7 +20,7 @@ - + From 5bc338a0255833c208669d9dd301affab67f7621 Mon Sep 17 00:00:00 2001 From: claudiamurialdo <33756655+claudiamurialdo@users.noreply.github.com> Date: Fri, 8 May 2026 15:56:40 -0300 Subject: [PATCH 2/2] 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) --- dotnet/src/dotnetframework/GxClasses/Core/gxconfig.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotnet/src/dotnetframework/GxClasses/Core/gxconfig.cs b/dotnet/src/dotnetframework/GxClasses/Core/gxconfig.cs index ca7010b4a..66f648cfc 100644 --- a/dotnet/src/dotnetframework/GxClasses/Core/gxconfig.cs +++ b/dotnet/src/dotnetframework/GxClasses/Core/gxconfig.cs @@ -457,7 +457,7 @@ private static string NormalizeLanguageName(string langCode) #if NETCORE public static IConfiguration ConfigRoot { get ; set; } const string Log4NetShortName = "log4net"; - static Version Log4NetVersion = new Version(3, 3, 0, 0); + static Version Log4NetVersion = new Version(3, 3, 1, 0); const string ConfigurationManagerBak = "System.Configuration.ConfigurationManager, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51"; const string ConfigurationManagerFileName = "System.Configuration.ConfigurationManager.dll"; @@ -504,7 +504,7 @@ private static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEven #else static Dictionary AssemblyRedirect = new Dictionary { - {"log4net", new Version(3, 3, 0, 0) }, + {"log4net", new Version(3, 3, 1, 0) }, { "System.Threading.Tasks.Extensions", new Version(4, 2, 0, 1) }, { "System.Runtime.CompilerServices.Unsafe", new Version(4, 0, 4, 1) }, { "System.Buffers", new Version(4, 0, 5, 0)},