Skip to content

AmbiguousMatchException on System.Text.Json deserialization with FSharp.Core version 9.0.300 #18596

@WithinUA

Description

@WithinUA

When I deserialize FSharp class I get this exception

Repro steps

just download and run this project

MultipleCompilationMappingAttributesRepro.zip

Expected behavior

No exception

Actual behavior

System.Reflection.AmbiguousMatchException: Multiple custom attributes of the same type 'Microsoft.FSharp.Core.CompilationMappingAttribute' found.

Known workarounds

Downgrade to 9.0.202 or lower

Related information

  • .NET 8, 9

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions