This seems incorrect to me:
#if NETSTANDARD
let handler = Func<AssemblyLoadContext, AssemblyName, Assembly>(resolveAssemblyNetStandard)
do AssemblyLoadContext.Default.add_Resolving(handler)
According to the documentation AssemblyLoadContext is NetCore but not NetStandard.
This causes issues when targeting Mono-Wasm which is NetStandard 2.0 but does not implement AssemblyLoadContext.
AppDomain is part of NetStandard 2.0 & 2.1