Relative Content

Tag Archive for c#.netaws-lambdaaws-samaws-sam-cli

Can’t build a C# Native AOT Lambda using sam build on Windows

I am trying to get familiar with building and deploying Native AOT C# Lambdas in order to improve our cold starts and to see if we get any additional benefits. I created a hello world project using the sam init template for C#, .NET 8, and Native AOT. When I run sam build on Windows 11, I get the following error. Appreciate any help here. I can’t seem to find a solution.