Azure Functions - Referencing the same library as the CLI
I'm working on a precompiled C# Azure Function, and I want to reference a lot of the Microsoft.Extensions dlls. The current version is 2.1.1 for most of these. However, when I run the project, I get an assembly load error. This seems to be caused by the folder the func.exe file is in comes with most of these dlls, but at version 2.0.0 . If I reference version 2.0.0 , then everything works. But is there a way to not have to reference the exact same version as the cli? This version conflict has been fixed in new version cli. See this related issue and SO thread. This should be resolved on the latest version of the Azure Functions runtime (2.0.11888, CLI 2.0.1-beta.31). Have done some tests with Microsoft.Extensions.Configuration 2.1.1 . Works as expected. To consume the latest cli, If you use Visual Studio to debug, update Azure Functions and Web Jobs Tools (in menu Tools>Extensions and Updates) to latest version 15.0.40617.0 . After update, create a new Azure Function project, ...