Closed HoraceGonzalez closed 2 years ago
Attached a sample project that reproduces the issue on my machine: issue-13546-repro.zip
Note, running the project w/t dotnet run .
seems to work. The issue only seems to happen in FSI. I've tested using paket
as well.
Duplicate of https://github.com/dotnet/fsharp/issues/13493
Json.NET serialization of records adds duplicate fields with
@
appended to the name in FSI (SDK versions 6.0.300 and up). For example, serializing this anonymous record:produces this result:
Repro steps
Provide the steps required to reproduce the problem:
mkdir temp
create a new
temp/test.fsx
file with the following content:cd temp && dotnet fsi test.fsx
Expected behavior
stdout prints:
Actual behavior
stdout prints:
Known workarounds
Change the sdk version to 6.0.107. I also observed the issue in 6.0.300
Related information
dotnet --info
output below