Question on AWSSDK.DynamoDBv2 that Document class have not been updated to support .NET 8 native AOT

0

I want to develop Lambda using .NET 8 AOT (Ahead Of Time) . This Lambda can access and manipulate AWS DynamoDB data because I have granted it the associated access permissions.

But when I use the Document class from AWSSDK.DynamoDBv2 (version 3.7.300.20) I get this warning:

Warning IL2026 Using member 'Amazon.DynamoDBv2.DocumentModel.Document.Document()' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. The Amazon DynamoDB high level libraries in the DocumentModel and DataModel namespace have not been updated to support Native AOT.

In fact, using the same code, I can successfully deployed a Lambda with .NET 7 AOT and didn't see any warnings about Amazon.DynamoDBv2.DocumentModel.Document.Document.

Now, what should I do to make this .NET8 AOT Lambda work like a .NET 7 AOT Lambda without changing my code?

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠