aws / aws-extensions-for-dotnet-cli

Extensions to the dotnet CLI to simplify the process of building and publishing .NET Core applications to AWS services
Apache License 2.0
369 stars 86 forks source link

Prove we can build native AOT in docker #230

Closed Beau-Gosse-dev closed 1 year ago

Beau-Gosse-dev commented 1 year ago

Description of changes: This is just a POC that proves we can get an end to end solution working that builds and deploys a native AOT .NET 7 application on an Amazon Linux 2 container.

There are many TODOs throughout the code, the code is not at all generic yet.

Was tested on Windows with a dotnet new lambda.CustomRuntimeFunction project that was changed from net6.0 to net7.0 and changed PublishReadyToRun to PublishAot

To test, set Amazon.Lambda.Tool as the startup project in Visual Studio, then update the debug config working directory to your CustomRuntimeFunction and add command line arguments deploy-function --build-zip-in-docker true

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Beau-Gosse-dev commented 1 year ago

Native AOT and container build support is now merged