You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting from .NET7, AOT compilation is supported by the framework.
In order to add support for AOT compilation to the Elasticsearch .NET Client, we have to add support for AOT compilation to all its dependencies as well. The most important dependency is the Elastic.Transport library.
To be able to achieve this goal, (de-)serialization interfaces might require some refactoring in order to allow users/dependants to pass down custom JsonSerializerContext instances (for which the code generation feature must be enabled). We at least have to do some investigation about what is possible already and what functionality might be missing.
Besides that, there is additional work to do in order to annotate code that dynamically accesses members or code that uses certain reflection based functionality like e.g. MakeGenericMethod(). It must be guaranteed that the code statically references all potential types for generic type parameters to prevent the trimmer from incorrectly removing required types.
Starting from .NET7, AOT compilation is supported by the framework.
In order to add support for AOT compilation to the Elasticsearch .NET Client, we have to add support for AOT compilation to all its dependencies as well. The most important dependency is the
Elastic.Transport
library.To be able to achieve this goal, (de-)serialization interfaces might require some refactoring in order to allow users/dependants to pass down custom
JsonSerializerContext
instances (for which the code generation feature must be enabled). We at least have to do some investigation about what is possible already and what functionality might be missing.Besides that, there is additional work to do in order to annotate code that dynamically accesses members or code that uses certain reflection based functionality like e.g.
MakeGenericMethod()
. It must be guaranteed that the code statically references all potential types for generic type parameters to prevent the trimmer from incorrectly removing required types.Related to: elastic/elasticsearch-net#8031
The text was updated successfully, but these errors were encountered: