Search code examples
.netazurefunction.net-6.0nuget-package

Could not load file or assembly 'Microsoft.Extensions.Options, Version=7.0.0.0, The system cannot find the file specified


I am getting below issue in my function app while debugging in local. Please let me know the issue here ! I think there is a bug from the packacges that i have used.

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

I have added below packages


Solution

  • I did have this issue before. Microsoft.Azure.Functions.Extensions installs some of your packages implicitly, remove things like Microsoft.Extensions.Options. Somehow, the Functions are using an older version (6.0.0 iirc) and are leading to some problems this way.