Skip to content

Native AOT and Trimming compatibility #38

@WizMe-M

Description

@WizMe-M

When I publish Native AOT application with Yandex Cloud SDK for making API requests it seems that AOT is not supported in lib.
The reason is this error, occuring when I'm making request via SDK:

Error: Status(StatusCode="Internal", Detail="Error starting gRPC call. AggregateException: One or more errors occurred. (Reflection-based serialization has been disabled for this application. Either use the source generator APIs or explicitly configure the 'JsonSerializerOptions.TypeInfoResolver' property.) InvalidOperationException: Reflection-based serialization has been disabled for this application. Either use the source generator APIs or explicitly configure the 'JsonSerializerOptions.TypeInfoResolver' property.", DebugException="System.AggregateException: One or more errors occurred. (Reflection-based serialization has been disabled for this application. Either use the source generator APIs or explicitly configure the 'JsonSerializerOptions.TypeInfoResolver' property.)")

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