-
Notifications
You must be signed in to change notification settings - Fork 249
Error: Bad IL format. Please support .NET Core 3.0, 3.1 #112
Comments
In order to fix this you will need to change .... to il.Emit(OpCodes.Callvirt, typeof(IZeroFormatterSegment).GetTypeInfo().GetMethod("Serialize")); |
+1 |
Any progress regarding this issue? I am also struggling with it. |
The solution is above. You have to get the code and On DynamicFormatter.cs |
Can we open a PR? |
CreateSerialize does not exist in CreateSerialize. |
In method: static TypeInfo BuildFormatter(ModuleBuilder builder, Type resolverType, Type elementType, Tuple<int, EmittableMemberInfo>[] memberInfos) You must change line: il.Emit(OpCodes.Call, typeof(IZeroFormatterSegment).GetTypeInfo().GetMethod("Serialize")); To: il.Emit(OpCodes.Callvirt, typeof(IZeroFormatterSegment).GetTypeInfo().GetMethod("Serialize")); |
@btogkas The above solution works if the above changes are done on both the projects
Cheers! |
This issue was resolved. Install-Package Alexinea.ZeroFormatter |
(cherry picked from commit d23071a)
Upstream is abandonware: the owner has ignored this one-line fix. See also `Alexinea.ZeroFormatter` which is actively maintained.
Lifesaver! Thank you. |
It looks like that fork changed the wire format of DateTime from (seconds,nanos) to (ticks) - without updating any docs. |
Steps to reproduce this issue
1. Write code
2. Execute
Possible solution
.NET Core 2.2
, instead of.NET Core 3.0
.NET Core 2.2
, instead of.NET Core 3.1
Environment
The text was updated successfully, but these errors were encountered: