I am writing an Azure function that uses 2 nuget packages (A and B) from my personal feed. Package A uses Dapper version 1.50.2 directly, and Package B uses Dapper.SimpleCrud 1.13.0, which is dependent on Dapper version [1.42.0, 2.0.0].
As part of the Azure function, I added project.json, where I specify packages A and B and their versions.
When I look at installed packages in the azure function, I see that Dapper 1.42.0 and 1.50.2 are installed. when I try to call methods in packages A and B, I get an error in the azure function logs saying that it cannot find Dapper version 1.40. (depending on how I installed my .json project, it will be either Dapper 1.40 or 1.50, which is not found by Azure Function)
I created a test version of the Dapper.SimpleCRUD package, where the dapper dependency on [1.50.2, 2.0.0] and everything works.
I also tried adding Dapper 1.50.2 to project.json in the hope that it would be used by Dapper.SimpleCRUD, but it still seems to be pulling in Dapper 1.42.
Is there some kind of setting that I skip in Azure Functions so that this setting works or is it a limitation for managing Azure packages?
Thanks for any help you can provide.
source share