Function app using .Net v4.0

Salil Singh 20 Reputation points
2024-04-08T12:01:44.64+00:00

Hi Team,

I understand that if an Azure Function app is using .net 6, it has to be updated to use .net 8 but if a Function app is using .net v4.0, does it also needs to be updated to .net8.

Please let me know if more details are needed.

Thanks,

Salil

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,986 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 54,316 Reputation points
    2024-04-08T15:32:49.7466667+00:00

    You do not have to upgrade from .NET 4 to .NET 8. If you have a "legacy" NET 4 function app then it must remain on NET 4. That is supported by the current v4.x app hosts. You can read about it here. Note that the EOL is not given and NET 4.8 is considered supported until the last version of Windows that uses it goes away. That is a while down the road.

    Going forward however you should be using NET 8 for newer function apps and you should upgrade your function apps to the NET 8 runtime when you can. If you're using older NET 6/7 versions then you need to upgrade to NET 8 by end of year (see link). Upgrading from NET 6+ to NET 8 is minimal. Upgrading from NET 4.x to NET 8 will be a bigger undertaking.

    0 comments No comments

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.