@Hilmar Bunjes I prefer and recommend using KUDU to verify the runtimes available and installed on your App Service. Can you please follow the below steps to locate the versions installed? (Also you are correct that 8 is LTS and was rolled out last year in GA. See here for source.)
- Access Kudu Site:
- Navigate to the Azure portal.
- Go to your App Service.
- In the left-hand navigation, select "Advanced Tools" and then click on the "Go" button. This will open the Kudu site in a new tab.
- Access Environment Information:
- Once you're in the Kudu site, click on the "Environment" tab at the top.
- This page will display a wealth of information about the environment your app is running in, including the installed runtimes.
- Check Installed Runtimes:
- Scroll through the environment variables and settings to find details about installed runtimes. Look for sections like
PATH
,LD_LIBRARY_PATH
, or specific environment variables related to runtimes (e.g.,JAVA_HOME
,DOTNET_ROOT
, etc.). - You can also look under the "App Settings" section for any application settings that might indicate installed runtimes.
- Scroll through the environment variables and settings to find details about installed runtimes. Look for sections like
- Using Console:
- Alternatively, you can use the Kudu console to check for installed runtimes.
- Click on the "Debug console" tab and choose either CMD or PowerShell.
- You can run commands like
dotnet --info
,java -version
,node --version
, etc., to check the specific versions of the runtimes installed.
If you do not see 8 listed as a runtime for your Web App in KUDU, can you please restart your App Service using the restart button in the Portal? Major changes can sometimes require a restart of your app to take effect.
Lastly, if the above steps do not resolve the issue, try updating and redeploying your application with a specific target framework set to .NET 8 in your project file (.csproj
). Ensure your project file includes:
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
Redeploy your application to the Azure App Service after making this change.