Skip to content

dotnet optimize fails because of private JsonReaderWriters #2972

@arizowa

Description

@arizowa

Hi, I upgraded my project to .NET 8.0
And when I run optimize dbcontext, I received error:

'NpgsqlTimestampTzTypeMapping.NpgsqlJsonTimestampTzDateTimeOffsetReaderWriter' is inaccessible due to its protection level

Please see attact image

Screenshot 2023-11-21 214733

The command is:

ef dbcontext optimize -o OptimizedModels -n ProjectName.Infrastructure.OptimizedModels -c PrimaryApplicationDbContext

What can I do to fix this issue? Any workaround for this?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions