Struggling with .NET 10 on Azure App Service for Linux
Asked by
MINT.leaf.tea
I recently tried to update my testing environment to .NET 10, which has just reached GA. I set up a new web app on Azure App Service with Linux and selected the stack as .NET and .NET 10 (LTS). However, after accessing the instance through Kudu Bash and running "dotnet --list-runtimes", I found that only .NET 8.0.21 was installed. I attempted to set up a self-contained build in Azure pipelines, but I ran into a problem where it said there's no target for 'net10.0/linux-x64', even though I configured the UseDotNet@2 task to use version '10.0.x'. While I could deploy using containers as I've done for previous versions, I was hoping not to complicate things with that approach since I don't need the container layer for this situation. I really expected Microsoft's images to natively support their LTS versionsโis this expectation too much? Has anyone successfully deployed a .NET 10 app on Azure pipelines to a Linux App Service?
Answers
I faced similar issues with .NET 10. It messed up my Azure Functions after publishing! I'm holding off until they sort out these problems. Itโs a bit frustrating that they announced GA yet so many things seem broken.
Reply to this answer
I share your concerns! I was hoping to compare memory usage of a .NET 10 app on Linux versus Windows, but I'm running into roadblocks too. It's surprising how they went live with .NET 10 when it feels like nothing is working consistently.
Reply to this answer
I suggest going with your own Docker container for now. It can simplify things and give you the flexibility you need.
Reply to this answer
I can't speak much about Azure, but Iโve been running some .NET 10 apps on Linux with AWS. It's been smooth for me since they're all compiled using AoT and run under systemd without using ASP.NET.
Reply to this answer
It's pretty common to experience delays with the latest stack deployments on Azure, including .NET versions. The process behind the scenes can take a while, especially around the holiday seasons, so lower your expectations a bit. As a workaround, consider deploying your apps using custom container images based on Microsoft's .NET 10 base images, which should give you more control and are available right away. This approach works for Azure App Service and Azure DevOps too.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions