Hello,
I have an Azure Functions project in Visual Studio 2022 (with the latest patch installed). I initially developed this project using .NET 6.0 about a year ago, and everything was working fine.
Recently, I updated the project to .NET 8.0 and upgraded all the old NuGet packages. The update completed successfully, and the project builds without issues.
However, when running the project locally in debug mode (x64), I encounter the following error:
Azure Functions Core Tools
Core Tools Version: 4.0.6518
Commit hash: N/A +74ed9095fdd6c5326276aae6b8a7d41ccbdeb6aa (64-bit)
Function Runtime Version: 4.35.4.23179
[2025-02-05T10:21:58.365Z] Found C:\Users\bvb\source\repos\Connect4Azure\Connect4Azure.csproj. Using for user secrets file configuration.
[2025-02-05T10:22:00.381Z] Error configuring services in an external startup class.
[2025-02-05T10:22:00.408Z] Error configuring services in an external startup class.
Connect4Azure: Could not load file or assembly 'Microsoft.Extensions.Configuration.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
I also tried using Microsoft.Extensions.Configuration.Abstractions version 9.0.1, but the error persists. The Microsoft.Extensions.Configuration.Abstractions.dll file is located in the correct directory on the file system, and its version appears to be correct.
Can anyone provide insight into why this error is occurring?
Best regards,
Brian