Unable to run azure function locally when migrated to .net8

Abhijit Jadhav (INFOSYS LIMITED) 11 Reputation points Microsoft Vendor
2023-12-18T13:00:12.66+00:00

We are trying to migrate azure functions from .net6 to .net8. Post migration we get below error. We get below error in function app console when we run function in local.

"Could not load file or assembly 'Microsoft.Extensions.Configuration, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified."

Function app uses Microsot.Extension.Configuration package.

Even after downgrading this package or other dependent packages we get this error.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,421 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,479 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,251 questions
{count} votes