File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Accounts/Accounts/Utilities Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,18 +30,18 @@ public static void Initialize()
30
30
}
31
31
32
32
/// <summary>
33
- /// When the resolution of an assembly fails, if it's Newtonsoft.Json 9, redirect to 10
33
+ /// When the resolution of an assembly fails, if will try to redirect to the higher version
34
34
/// </summary>
35
35
public static Assembly CurrentDomain_AssemblyResolve ( object sender , ResolveEventArgs args )
36
36
{
37
37
try
38
38
{
39
39
AssemblyName name = new AssemblyName ( args . Name ) ;
40
- if ( NetFxPreloadAssemblies . TryGetValue ( args . Name , out Version version ) )
40
+ if ( NetFxPreloadAssemblies . TryGetValue ( name . Name , out Version version ) )
41
41
{
42
42
if ( version >= name . Version && version . Major == name . Version . Major )
43
43
{
44
- string requiredAssembly = Path . Combine ( PreloadAssemblyFolder , $ "{ args . Name } .dll") ;
44
+ string requiredAssembly = Path . Combine ( PreloadAssemblyFolder , $ "{ name . Name } .dll") ;
45
45
return Assembly . LoadFrom ( requiredAssembly ) ;
46
46
}
47
47
}
You can’t perform that action at this time.
0 commit comments