Skip to content

JsonConstructorAttribute not working for private/internal ctor in .NET 8.0 preview7 #90577

@TanvirArjel

Description

@TanvirArjel

Description

Hello @eiriktsarpalis,

I have tested with .NET 8.0 Preview7 SDK with Rider. It's not working. It's throwing the following exception:

image

My SDKs:

image

Debug Log:

image

Employee class:

image

Reproduction Steps

Try in Rider with .NET 8.0 preview 7 SDK.

Expected behavior

It should have worked as mentioned here: #88452

Actual behavior

Not working. Throwing Unsupported exception.

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions