I’ve been getting this error message when I try to run my Azure function v4.
System.IO.FileNotFoundException: 'Could not load file or assembly 'Microsoft.Extensions.Options, Version=184.108.40.206, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.'
This used to work like a week ago, and now it’s throwing this error at runtime. Latest changes I did was to update EF Core to version 7. But I guess that’s not relevant because that’s in a different project, so not related to the function project.
Has anyone else got it or any idea how to resolve it?
Tried removing all the Nuget packages and installing them. That didn’t work. I can see the Microsoft.Extensions.Options.dll (v7) in the debug folder as well. Not sure why the runtime complains about it.
I recently updated to VS 2022 Version 17.4.1. Maybe that’s the issue here?