Skip to content
Discussion options

You must be logged in to vote

To use Annotations for AOT you have to use the LambdaGlobalProperties attribute with the GenerateMain set to true. At the time of compilation we don't know which function will be invoked so the generated main is basically a switch statement for all of the Lambda functions defined in the project with the value of the ANNOTATIONS_HANDLER environment variable control which case to run. So from the .NET trimmer's point of view all Lambda functions are possible to be called so there is no trimming at a per function level.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dscpinheiro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants