Closed joeclauson closed 9 months ago
@joeclauson
I do not think our BouncyCastle dependency supports AoT. My understanding is that AoT was an experimental feature or at least limited in .NET 7.
The original AWS Encryption SDK for .NET (ESDK-.NET) was vended targeting .NET 6, with efforts at being backwards compatible to early .NET Frameworks.
Since you cut this issue, we have released the ESDK-.NET v4, but it still targets .NET 6.
V4 switched from PortableBouncyCastle to BouncyCastle.
You could try V4.
But we are not, at this time, committing to AoT support.
Much Obliged, AWS Crypto Tools
During a lambda execution, an error was thrown when utilizing this SDK. It appears the current BouncyCastle dependency does not support trimming or AoT.
Our C# lambdas work flawlessly using JIT, so I know the code is good. We are using these Lambdas for Cognito and that has a five second time-limit that we're brushing against or surpassing at times, so we'd like to use AoT.
Please let me know if there is any more information I can provide.
Thanks!
Here is the full error:
The code, although not an exact copy, looks like this: