I made a simple ASP.NET Core AOT web app by using the Visual Studio 2022 template. It just shows a list of ”to-do” items when I run it inside the Visual Studio (so, it works). Then I created an Azure web app (App Service), and followed all the steps to publish an AOT here: https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot/?tabs=net7%2Cwindows . Then I followed all the steps to publish ASP.NET Core from here: https://learn.microsoft.com/en-us/aspnet/core/tutorials/publish-to-azure-webapp-using-vs?view=aspnetcore-8.0 . I made sure it is x64, .NET 8.0 and that my App Service also is x64 and .NET 8.0. When I published it via Visual Studio 2022, it succesfully copied the AOT exe file to my wwwroot, but when I try to visit the website, it just shows the default Azure notification ”waiting for content” (and I did wait for 20 minutes and refreshed the page).
I’ve been banging my head to the wall with this for nearly 12 hours now straight, and cannot understand how to deploy ASP.NET Core AOT apps to Azure app service. There doesn’t seem to be any good documentation available on the subject.
Please, help!