Saturday, March 21, 2020

How to determine the installed .NET Framework, .NET Core, and Functions Runtime versions in Azure App Services

 The Details for .NET Core and Functions, so I decided to write up a single post that covers all three.

First steps

The first thing we need to do is to open the Kudu Debug Console.
To do that, navigate to {yoursite}.scm.azurewebsites.net and then click on "Debug console" at the top. You can select either CMD or PowerShell.
Now that we have the console open...

.NET Framework

To find out the installed .NET Framework versions, type: ls "\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework"

ls -l and dir also work in place of ls, we're just listing the contents of the folder.
Or you can type: ls "\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App"

Functions Runtime

For the installed Azure Functions Runtime versions, type: ls "\Program Files (x86)\SiteExtensions\Functions"

The Kudu console supports pasting via Control-V for the commands above.
You can also select the "System Drive" icon in the file browser section at the top of the page and then navigate to the respective folders by clicking the folder links. Using the file browser will automatically change the current working directory in the console.

Thank you

1 comment: