kevin-montrose / Jil

Fast .NET JSON (De)Serializer, Built On Sigil
MIT License
2.15k stars 253 forks source link

Can not deserialize on .net 9 #363

Open Mutuduxf opened 4 months ago

Mutuduxf commented 4 months ago

When deserialize the Jil throw an exception like:

System.Reflection.AmbiguousMatchException: Ambiguous match found for 'System.TimeSpan System.TimeSpan FromSeconds(Int64)'. at System.RuntimeType.GetMethodImplCommon(String name, Int32 genericParameterCount, BindingFlags bindingAttr, Binder binder, CallingConventions callConv, Type[] types, ParameterModifier[] modifiers) at System.Type.GetMethod(String name, BindingFlags bindingAttr) at Jil.Deserialize.InlineDeserializer`1..cctor()

Jil Version: 2.17.0 DotNet Version: 9.0.100

Also, it can pass through from Net Core 3.1 to Net 8.0.