Function app .Net framework version

Salil Singh 60 Reputation points
2024-04-05T16:12:52.7866667+00:00

Hi Team

I am working on a requirement where I need to find out the .Net framework version used in the function apps. In case it is .Net6, I need to convert it to .Net8.

Below are details on function apps -

  1. Target framework in csproj file of all function app projects is net6.0.
  2. On Azure portal, under app settings of function apps, value of FUNCTIONS_WORKER_RUNTIME is dotnet.
  3. On Azure portal, under app settings of function apps, few function apps having value of FUNCTIONS_EXTENSION_VERSION as ~4, few having ~3.
  4. On Azure portal. for all function apps, under Function app -> Overview -> Properties -> Runtime stack is .NET - v4.
  5. az functionapp config show --name 'fnappname1' --resource-group 'fnapprg' --query "netFrameworkVersion"

above command giving output as v4.0 for all function apps.

Please let me know what is the .Net framework of the function so that I could decide if function app is right candidate to be converted to .Net8.

Thanks,

Salil

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
Developer technologies .NET Other
{count} votes

1 answer

Sort by: Most helpful
  1. Azizkhon Ishankhonov 540 Reputation points
    2024-04-08T13:31:43.2266667+00:00

    Hi Salil

    As I understood, you just want to know which .Net version your Function uses.

    Your functions are likely written for the .NET runtime (specifically .NET 6 based on the csproj file), not the .NET Framework. The seemingly conflicting settings might be due to:

    • Outdated app settings (FUNCTIONS_EXTENSION_VERSION) do not reflect the actual runtime usage.
    • Azure Portal's generic runtime stack representation.

    Please use the following instruction/manual to migrate to .Net 8: https://learn.microsoft.com/en-us/azure/azure-functions/migrate-version-3-version-4?tabs=net8%2Cazure-cli%2Clinux&pivots=programming-language-csharp

    Please accept the answer if it was helpful


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.