From e1e1bdbdd162db512e820edc2d196baf3743e0ff Mon Sep 17 00:00:00 2001 From: Claudia Murialdo Date: Mon, 3 Feb 2025 18:12:22 -0300 Subject: [PATCH] Fix assembly version conflict on GxRedis: Added AssemblyResolve handler to load Microsoft.Bcl.AsyncInterfaces v8.0.0.0 when v5.0.0.0 is requested. --- dotnet/src/dotnetframework/GxClasses/Core/gxconfig.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dotnet/src/dotnetframework/GxClasses/Core/gxconfig.cs b/dotnet/src/dotnetframework/GxClasses/Core/gxconfig.cs index 65a8aa494..d2964ad9a 100644 --- a/dotnet/src/dotnetframework/GxClasses/Core/gxconfig.cs +++ b/dotnet/src/dotnetframework/GxClasses/Core/gxconfig.cs @@ -501,7 +501,8 @@ private static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEven { "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, 3, 0)}, - { "System.Memory",new Version(4, 0, 1, 1) } + { "System.Memory",new Version(4, 0, 1, 1) }, + { "Microsoft.Bcl.AsyncInterfaces",new Version(8, 0, 0, 0) }//redirection required for StackExchange.Redis }; static string GeoTypesAssembly = "Microsoft.SqlServer.Types";