I have Azure Functions project and I am using Autofac dll for DI in Azure functions. While trying to run the function using VS 2017 (community), it throws an exception -
System.IO.FileNotFoundException: 'Could not load file or assembly 'AzureFunctions.Autofac.Shared, Version=3.0.6.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.'
Things that I have tried to resolve the issue -
- Uninstall "AzureFunctions.Autofac" NuGet packet and reinstalled it.
- Restarted VS even my machine
- Made sure I have Azure storage emulator and Azure CLI installed.
- Checked all "AzureFunctions.Autofac" NuGet packages are loaded correctly in project.
- Tried to Google it but couldn't find a concrete solution.
What could be wrong here and how to debug this issue?
Thanks!