It is basically not possible to upgrade Azure Functions from an earlier version of .NET to .NET 8.0. Just build a new project with all the functions and then add the code for each function from the old project.