Hello @Duminda Jayasuriya
Hello! It seems like you have upgraded your Azure Function app from .NET 6 to .NET 8, but the .azurefunctions > function.deps file still shows the runtimeTarget as .NETCoreApp,Version=v6.0.
The function.deps file is generated by the Microsoft.NET.Sdk.Functions NuGet package, which is responsible for generating the function.json and other files required for Azure Functions. To upgrade the function.deps file to .NET 8, you need to update the Microsoft.NET.Sdk.Functions
NuGet package to version 4.0.1 or later. You can do this by opening the Package Manager Console in Visual Studio and running the following command:
Alternatively, you can update the package through the NuGet Package Manager UI. After updating the package, rebuild your project and check the .azurefunctions > function.deps file again. It should now show the runtimeTarget as .NETCoreApp,Version=v8.0. That should help.