How to get Linux app service using .NET 6.0 LTS

Copper Contributor

I have a .NET app running on App Service Linux.

 

In the portal, I've configured the app service for .NET 6.0  (Major version) and .NET 6 (LTS) (Minor version).

 

However when I try to deploy a .NET 6 app it fails because it cannot find the right runtime. It can only find 6.0 preview. And if I connect to the app service with SSH this is the output from dotnet --list-runtimes:

 

Microsoft.AspNetCore.App 6.0.0-preview.3.21201.13 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.0-preview.3.21201.4 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

 

I have used self-contained deployment as a workaround. But how can I get the .NET 6.0 LTS runtime installed?

 

Tim

0 Replies