- Target framework in csproj file: The csproj file specifies the target framework as
net6.0
, indicating that the function app is targeting .NET 6.0. - FUNCTIONS_WORKER_RUNTIME: The value of
FUNCTIONS_WORKER_RUNTIME
environment variable is set todotnet
, which signifies that the function app is using the .NET runtime. - FUNCTIONS_EXTENSION_VERSION: The value of
FUNCTIONS_EXTENSION_VERSION
environment variable is~4
, which corresponds to version 4 of the Azure Functions runtime. This version is compatible with .NET 6.0. - Function app overview properties: The "Runtime stack" property in the Function app overview indicates that the runtime stack is ".NET - v4.0". This might seem confusing, but in the context of Azure Functions, it refers to the version of the Azure Functions runtime stack, not the .NET runtime version. The Azure Functions runtime version 4.0 is compatible with .NET 6.0.
Considering all these points together, the function app is using the .NET 6.0 runtime.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin