Unable to run azure function locally when migrated to .net8

Abhijit Jadhav (INFOSYS LIMITED) 11 Reputation points Microsoft External Staff
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.
5,909 questions
Developer technologies ASP.NET ASP.NET Core
Developer technologies .NET Other
{count} votes

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.