SDot (@ScottDotMS) profile picture

-

Sydney, Australia
Joined October 2015
Photo by SDot (@ScottDotMS)Photo by SDot (@ScottDotMS)Photo by SDot (@ScottDotMS)
What a world! An ASP.NET Core Minimal API, running as a top-level statement on .NET 7.0, being AOT statically compiled into a container image (FROM scratch, no deps!), running without issue. (I'll save you the list of warnings, but details below...)
2
64
4
306
Top left we have our program, just a single file with a top-level statement ( docs.microsoft.com/en-us/dot… ). If you haven't checked out minimal APIs for ASP.NET Core, do it now! Literally 3 lines for a Hello World API! ( docs.microsoft.com/en-us/asp… )
1
4