Skip to content

Cannot deserialize types when simplified qualified name is not resolvable by .NET framework #117

@alexvaut

Description

@alexvaut

To reproduce, add this test in Hyperion.Tests:

    [Fact]
    public void CanSerializeColor()
    {
	var expected = Color.Aquamarine;
        Serialize(expected);
        Reset();
        var actual = Deserialize<Color>();
        Assert.Equal(expected, actual);
    }

This test in all the .NET core versions will pass but not the one in .NET framework.
The reason is that "System.Drawing.Color, System.Drawing" is not a fully qualified type name in .NET framework.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions